Posted by Rik on 09/30/64 11:47
laredotornado@zipmail.com wrote:
> Hi,
>
> If I have a $_REQUEST variable that contains either the value "" or
> "0", the empty($_REQUEST['myvar']) call returns the same thing -- 1.
> How can I distinguish between these values without causing any errors
> or warnings (notices)?
>
> I'm using PHP 4. Thanks for the help, - Dave
$_REQUEST['myvar']===0
or
$_REQUEST['myvar']===''
http://nl2.php.net/manual/en/language.operators.comparison.php
Grtz,
--
Rik Wasmus
[Back to original message]
|