php 01 ==1?
var_dump(in_array('01',array('1'))); // true
Can the boss explain it?
Li_ [Xin]2021-06-28 18:47:54
01 == 1 Because if in_array does not add a third parameter to force the type, this is a weak type comparison. 01 is naturally equal to 1. If the force type is string 01 is not equal to string 1