note 110760 deleted from function.isset by googleguy
| From: | googleguy@php.net | Date: | Mon, 03 Dec 2012 23:41:27 +0000 |
| Subject: | note 110760 deleted from function.isset by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-192267@lists.php.net to get a copy of this message | ||
Note Submitter: philthathril at gmail dot com
----
FYI. isset() does a strict comparison for null, so be aware whenever you're testing for zero
vs. null.
<?php
$zero = 0;
$null = null;
isset($zero); // true
isset($null); // false
$zero == null; // true
$zero === null; // false
?>