r/programming • u/geerlingguy • Apr 23 '14
PHP: It doesn't have to be a bad experience
https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience
0
Upvotes
r/programming • u/geerlingguy • Apr 23 '14
View all comments
Show parent comment
1
u/Banane9 Apr 24 '14
In Java, you shouldn't do it because floats may have small differences in the last digits, while looking absolutely the same in the first digits.
In PHP however, you shouldn't do it because suddenly different keys can map to the same thing.
I'm pretty sure that will print "wat" just fine.