On Sat, 4 Jan 2003 20:33:14 -0500, you wrote:

>I couldn't think of isset, so I winged it:
>
>if (strlen($var) > 0) {...}

This should work most of the time, but be aware this will produce a
warning if $var isn't set (and you haven't set your error reporting
level to ignore warnings)...  If you're not sure that $var exists it's
better to check it with isset() before checking strlen()...

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

Reply via email to