Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>The poster of that comment should RTFM...

I am not sure I should go read the manual before setting a string key in an array to make sure that the specific string does not falls under some kind of special treatment. When normal people see that they can set string keys on something, they would assume that it work for all strings regardless of their content.

And regarding PHP manual, it does not even have fundamental stuff right. This comment is from an ex php core developer.

http://www.reddit.com/r/lolphp/comments/2md8c0/new_safe_cast...

>using a == instead of a === would cause the desired result

Except using == will result in a hundred other weird behaviors that have caused numerous many bugs and security vulnerabilities, that every one uses === with out exception..



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: