Questions tagged «strpos»

14
在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!'; } 因为当使用它时,它将不起作用,如果有这样的东西,那会很好
89 php  arrays  strpos 

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.