Re:PHP cheat: ==, ===, empty(),is_null(),isSet()
by Zak on Monday August 25, 2008 @10:41PM
(#286699)
There is nothing special about web development that makes implicit typecasting or returning an arbitrary value when a cast fails instead of raising an exception a good idea. Another reasonable option is to return NaN (Javascript does this) or null.
[ Parent
| on HN ]
There are no comments on this comment yet.