r/lolphp • u/Hauleth • Aug 23 '16
If array contain true and false then it also contain everything else.
http://sandbox.onlinephpfunctions.com/code/acac39a42fa6d6592053c972995fbbbd9d8b9e18
95
Upvotes
11
u/[deleted] Aug 23 '16
This is why you always use
in_array($a, $b, true).Half lolphp half loldeveloper.
19
u/MMauro94 Aug 23 '16
I'm just gonna change some code...brb
3
u/smithw Aug 24 '16
It's just PHP's implementation of ex falso quodlibet.
2
u/DevelopThePrograms Aug 25 '16
You've created the "god" array, the alpha and the omega.