On Wednesday, February 6, 2002, at 03:42 PM, Michael Sims wrote:
> This is fine for most cases, but let's say that $_POST['var'] *is* set
> to either an empty string ("") or a string containing zero ("0"). Your
> test will fail, because both of these are evaluated as FALSE when cast
> as a boolean.
That's the meat of it, then. I wasn't aware of the different types of
evaluation that could be done on a variable (boolean, etc). Okay, I'm
reading that link as I write this. Thanks again.
Erik
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php