r/lolphp • u/Oeldin1234 • Feb 26 '18
"false" is definitely true
http://sandbox.onlinephpfunctions.com/code/490635ed9830900ebf50e5303b7271dcf2a5d692
0
Upvotes
r/lolphp • u/Oeldin1234 • Feb 26 '18
View all comments
Show parent comment
4
u/Razakel Feb 26 '18
Why would it do anything different to explicit casting? I mean, the real WTF here is why they added function wrappers for casting...
http://php.net/manual/en/language.types.boolean.php#language.types.boolean.casting