The pit of strpos function

$a = '111111,222222';
$b = 222;
// $b = strval($b);

var_dump(strpos($a, $b));// false

Note the use of the function, the incoming variable needs to be converted into a string

Guess you like

Origin blog.csdn.net/weixin_38230961/article/details/104435525