Rodolfo Andrade wrote:

How about...

if (!$x){
   echo "x is empty";
}

Because $x could be an empty string, 0, false, null or undefined. If that's what you need to check for then knock yourself out.

-Stuart

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to