Re: !isset ??

From: Date: Wed, 06 Feb 2002 21:08:47 +0000
Subject: Re: !isset ??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-83758@lists.php.net to get a copy of this message
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 pricee@hhbrown.com

« previous php.general (#83758) next »