note 7616 added to empty
| From: | ccjeagle at ms6 dot hinet dot net | Date: | Wed, 09 Aug 2000 01:45:33 +0000 |
| Subject: | note 7616 added to empty | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-722@lists.php.net to get a copy of this message | ||
php4.0.1pl2
<?
$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
?>
http://www.php.net/manual/function.empty.php