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

Yes this. A million times this.

Anyone who uses PHP seriously knows when accepting user input you have to do type checking rigorously. The manual states the input has to be a float. Of course in PHP this means it SHOULD be a float but why risk sending it a variable who's type is still undecided?



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

Search: