note 15605 added to ref.var
| From: | skelley at diff dot nl | Date: | Sat, 22 Sep 2001 14:55:38 +0000 |
| Subject: | note 15605 added to ref.var | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-18189@lists.php.net to get a copy of this message | ||
Sorry to say Mykolas, but your definition would not be correct.
isempty() evaluates to true for NULL, 0, "", false or 'not set' for any
variable, object etc. that can be set to a value.
isset() evaluates to true if the variable, object etc. exists at all, whether it is
'empty' or not.
Example:
$foo = 0;
isset($foo); //will evaluate to true.
!empty($foo); //will evaluate to false.
unset($foo);
isset($foo); //will evaluate to false.
!empty($foo); //will evaluate to false.
http://www.php.net/manual/en/ref.var.php