note 112877 deleted from language.types.null by googleguy
| From: | googleguy@php.net | Date: | Thu, 01 Aug 2013 07:23:56 +0000 |
| Subject: | note 112877 deleted from language.types.null by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-195843@lists.php.net to get a copy of this message | ||
Note Submitter: steve
----
<?php
// check null
$val = 1;
if ($val) {
echo 'not null';
} else {
echo 'null';
}
// Output: not null
$val = null;
if ($val) {
echo 'not null';
} else {
echo 'null';
}
// Output: null