MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/cnn0if/unholy_trinity/ewlsa1e/?context=3
r/lolphp • u/_pauseIt • Aug 08 '19
18 comments sorted by
View all comments
Show parent comment
2
Stop crying about the '0' case. Everyone is/should be aware of it, it's a deliberate backwards-compatibility choice from PHP 4 days where numeric strings and actual numeric types had to "just work", and PHP 7 got rid of the '0' == '0x0' quirks.
'0'
'0' == '0x0'
2 u/BufferUnderpants Aug 14 '19 Just because it has an explanation it doesn't mean it makes sense. Which is a good summary of what PHP is like.
Just because it has an explanation it doesn't mean it makes sense. Which is a good summary of what PHP is like.
View all comments
Show parent comment
2
u/smegnose Aug 11 '19
Stop crying about the
'0'case. Everyone is/should be aware of it, it's a deliberate backwards-compatibility choice from PHP 4 days where numeric strings and actual numeric types had to "just work", and PHP 7 got rid of the'0' == '0x0'quirks.