ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
# 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 ?> ``` ```