Re: testing if var is empty
| From: | Rasmus Lerdorf | Date: | Sat, 21 Jul 2001 02:30:22 +0000 |
| Subject: | Re: testing if var is empty | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-58984@lists.php.net to get a copy of this message | ||
http://php.net/empty
On Sat, 21 Jul 2001, Justin French wrote:
> Hi,
>
> I'm a semi-newbie, and if I want to check if a variable is set, or
> contains something, i've been doing it like this:
>
> if($var != "") { ... }
>
> I'm sure there is a better/safer/smarter/faster/more reliable way?
>
>
> Justin French
>
>