how about: if (trim($foo) != '')
Respectfully, Ligaya Turmelle "Al" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I could use one additional clarification regarding good practice. > > As I understand the php manual the following is acceptable. > > $foo= TRUE; > > if($foo) do.............. ; > > where $foo is a binary; but not a variable. > > Use isset($var) for variables and be careful with $var= ' '; etc. > because $var is assigned, i.e., "set". -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php