🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# in\_string() ## in\_string() ``` <pre class="calibre11">``` in_string($s, $str) ``` ``` #### 【功能】 判断一个字符串是否在另外一个字符串中。 默认分割符为英文半角逗号: , #### 【参数】 ``` <pre class="calibre11">``` $s:小字符串 $str:大字符串 ``` ``` #### 【用例】 ``` <pre class="calibre11">``` <?php include './xiunophp/xiunophp.php'; $r = in_string('ab', 'ab,abc,abcd') // 结果:TRUE/FALSE ?> ``` ```