as suggeted the isset and empty functions are usefull, 
or if you know it may be set, but could be empty, how about just
if($variable) {

}

that is the same as
if($var == "")

"Chris Mach" <[EMAIL PROTECTED]> 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 == "")
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.766 / Virus Database: 513 - Release Date: 18-Sep-2004

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

Reply via email to