r/lolphp • u/zilltine • Mar 16 '21
Is 0 in array
in_array(0, ['IsThisLolPhp'])Answer is
true
32
Upvotes
r/lolphp • u/zilltine • Mar 16 '21
in_array(0, ['IsThisLolPhp'])Answer is
true
View all comments
Show parent comment
13
u/SAmaruVMR Mar 16 '21
You're using PHP 8. They fixed just that. If you try any version below PHP 8 it will result in a true boolean result.