|
1
11
您需要使用“严格”设置,以强制函数检查元素的类型:
http://php.net/manual/en/function.in-array.php
它返回true的原因是因为字符串是truthy,因此也是truthy
|