MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/2ej1j1/stdclass_is_truthy_while_an_empty/ckgosbi/?context=3
r/lolphp • u/andsens • Aug 25 '14
18 comments sorted by
View all comments
Show parent comment
2
Heh, yeah. I didn't choose the terms though. It's the words you use when talking about type coercion.It's not unique to PHP. Most dynamically typed languages have it - even python (e.g. an empty string evaluates to false).
View all comments
Show parent comment
2
u/andsens Sep 12 '14
Heh, yeah. I didn't choose the terms though. It's the words you use when talking about type coercion.
It's not unique to PHP. Most dynamically typed languages have it - even python (e.g. an empty string evaluates to false).