Don't know about a correct way but you can use if(empty($variable))

Robbert van Andel 


-----Original Message-----
From: Frank Wang [mailto:wang960@;yahoo.com]
Sent: Friday, November 15, 2002 7:10 AM
To: [EMAIL PROTECTED]
Subject: [PHP] newbie's question


Hi,
what is the correct way of testing if a string is empty or not?

fw



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


 "The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from all
computers." 


Reply via email to