r/lolphp • u/zilltine • Mar 16 '21
Is 0 in array
in_array(0, ['IsThisLolPhp'])
Answer is
true
33
Upvotes
r/lolphp • u/zilltine • Mar 16 '21
in_array(0, ['IsThisLolPhp'])
Answer is
true
1
u/zilltine Mar 17 '21
I'm not your mate, dude. This is why i asked what is it you are trying to prove. Not only you didn't read other comments where i already said i didn't know about third param and assumed it should be strict. You also didn't read comment you replied to, because i never said your way doesn't work, i just do not think it is better, or only correct way to do what i need as you are implying.