Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有任何可以传递给parse_str的输入会导致第二个引用参数未设置为数组?
因此,一个值$x将导致条件为真。
parse_str($x, $array); if (is_array($array) === false)) { echo $x . ' wont parse to an array!'; }
我尝试了null,false和几个字符串,所有这些都导致$array成为一个空数组。
null
false
$array