note 65331 deleted from function.empty by didou
| From: | didou@php.net | Date: | Sun, 18 May 2008 00:57:25 +0000 |
| Subject: | note 65331 deleted from function.empty by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-139481@lists.php.net to get a copy of this message | ||
Note Submitter: boards at gmail dot com
----
Followup to ben at wbtproductions dot com:
You'll want to do this check for numeric 0:
<?
if ($data === 0) echo 'The data is zero.';
?>
Checking $data == 0 basically means the same thing as "is $data false?". Loose type
checking is a gotcha you should look out for.