相关疑难解决方法(0)

使用阵列作为strpos中的针

strpos在搜索字符串时如何使用针数组?例如:

$find_letters = array('a', 'c', 'd');
$string = 'abcdefg';

if(strpos($string, $find_letters) !== false)
{
    echo 'All the letters are found in the string!';
}
Run Code Online (Sandbox Code Playgroud)

因为在使用它时,它不起作用,如果有这样的东西会很好

php arrays strpos

79
推荐指数
6
解决办法
13万
查看次数

标签 统计

arrays ×1

php ×1

strpos ×1