At 01:54 20-09-2004, Chris Mach wrote:
What is the best way to determine if a variable is empty?

I have a feeling there is a better way than the way I'm doing it now...

if ($variable == "")

there's 2:

if (isset($variable))

or

if (isempty($variable))

what's most appropriate depends on how the variable is set or not

--
Rene Brehmer
aka Metalbunny

If your life was a dream, would you wake up from a nightmare, dripping of sweat, hoping it was over? Or would you wake up happy and pleased, ready to take on the day with a smile?

http://metalbunny.net/
References, tools, and other useful stuff...
Check out the new Metalbunny forums at http://forums.metalbunny.net/

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



Reply via email to