MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/3v4l98/php_7_released/cxkplv7/?context=3
r/programming • u/fnkrx • Dec 02 '15
729 comments sorted by
View all comments
Show parent comments
83
How about 34, 34.0, "34", "34 ", " 34"...
9 u/oridb Dec 02 '15 Aren't those all the same? 28 u/NeuroXc Dec 02 '15 Mostly."34" != "34 " and " 34" != "34 ".But "34" == " 34".Wat. 3 u/alexanderpas Dec 02 '15 integer comparison vs. string comparison.http://php.net/manual/en/language.types.string.php#language.types.string.conversion → More replies (3)
9
Aren't those all the same?
28 u/NeuroXc Dec 02 '15 Mostly."34" != "34 " and " 34" != "34 ".But "34" == " 34".Wat. 3 u/alexanderpas Dec 02 '15 integer comparison vs. string comparison.http://php.net/manual/en/language.types.string.php#language.types.string.conversion → More replies (3)
28
Mostly.
"34" != "34 " and " 34" != "34 ".
"34" != "34 "
" 34" != "34 "
But "34" == " 34".
"34" == " 34"
Wat.
3 u/alexanderpas Dec 02 '15 integer comparison vs. string comparison.http://php.net/manual/en/language.types.string.php#language.types.string.conversion → More replies (3)
3
integer comparison vs. string comparison.
http://php.net/manual/en/language.types.string.php#language.types.string.conversion
→ More replies (3)
83
u/notsure1235 Dec 02 '15
How about 34, 34.0, "34", "34 ", " 34"...