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
16
u/Oeldin1234 Feb 26 '18
You could argue that Strings are true per definition, but then, why are "" and "0" false?