Re: empty variable
| From: | Chris Dowell | Date: | Tue, 21 Sep 2004 18:52:14 +0000 |
| Subject: | Re: empty variable | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-197456@lists.php.net to get a copy of this message | ||
Just to clear up, there is no isempty() function - the correct function is empty() and its details can be found here: http://uk.php.net/empty
Cheers
Chris
-{ Rene Brehmer }- wrote:
At 01:54 20-09-2004, Chris Mach 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 == "")there's 2: if (isset($variable)) or if (isempty($variable)) what's most appropriate depends on how the variable is set or not