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

Robbert van Andel 

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

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


PHP General Mailing List (
To unsubscribe, visit:

 "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

Reply via email to