84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
php 01 ==1?
var_dump(in_array('01',array('1'))); // true
Can the boss explain it?
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
What kind of function do you want to achieve?
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
What kind of function do you want to achieve?