note 7616 deleted from function.empty by aidan
| From: | aidan@php.net | Date: | Mon, 24 Jan 2005 14:34:11 +0000 |
| Subject: | note 7616 deleted from function.empty by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-83865@lists.php.net to get a copy of this message | ||
Note Submitter: ccjeagle at ms6 dot hinet dot net
----
Here are a few tests with empty:
$a = 0 ; print empty($a) ? "TRUE" : "FALSE"; //TRUE
$b = "0" ; print empty($b) ? "TRUE" : "FALSE"; //TRUE
$c = "" ; print empty($c) ? "TRUE" : "FALSE"; //TRUE
$d = 1 ; print empty($d) ? "TRUE" : "FALSE"; //FALSE
print empty($e) ? "TRUE" : "FALSE"; //TRUE
$f= TRUE ; print empty($f) ? "TRUE" : "FALSE"; //FALSE
$g= FALSE; print empty($g) ? "TRUE" : "FALSE"; //TRUE
$h=array();print empty($h) ? "TRUE" : "FALSE"; //TRUE