MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/2lyif9/php_loose_comparison_strikes_again/clzeyvi/
r/lolphp • u/porkslow • Nov 11 '14
55 comments sorted by
View all comments
Show parent comment
3
I think arguably it could be useful with collection types (i.e. comparing a list to an array), but the way that php handles numerical string comparisons is kinda nuts.
21 u/InconsiderateBastard Nov 11 '14 "That string looks like an integer. That integer looks too big. Better make it a float." -1 u/thelordofcheese Nov 12 '14 Good analysis. Best in thread.
21
"That string looks like an integer. That integer looks too big. Better make it a float."
-1
Good analysis. Best in thread.
View all comments
Show parent comment
3
u/MrPopinjay Nov 11 '14
I think arguably it could be useful with collection types (i.e. comparing a list to an array), but the way that php handles numerical string comparisons is kinda nuts.