note 16899 added to language.types.null
| From: | junk dot phpnet at gasolinemm dot com | Date: | Sun, 18 Nov 2001 02:19:13 +0000 |
| Subject: | note 16899 added to language.types.null | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-20967@lists.php.net to get a copy of this message | ||
$a = "";
$b = NULL;
$a == $b;
/* returns true: $a has been converted to $b for the equality comparison */
is_null($a); //returns false
is_null($b); //returns true
$a === $b;
/* returns false: $a is not _identical_ to $b */
--
http://www.php.net/manual/en/language.types.null.php
http://master.php.net/manage/user-notes.php?action=edit+16899
http://master.php.net/manage/user-notes.php?action=delete+16899
http://master.php.net/manage/user-notes.php?action=reject+16899