note 35577 added to language.types.null
| From: | thierry dot bo at netcourrier dot com | Date: | Sat, 06 Sep 2003 15:58:53 +0000 |
| Subject: | note 35577 added to language.types.null | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-55547@lists.php.net to get a copy of this message | ||
[OOPS, sorry delete this, just read :
When converting to boolean, the following values are considered FALSE:
the integer 0 (zero)
the special type NULL (including unset variables)
]
Well, if
" A variable is considered to be NULL if :
- it has not been set to any value yet
- (....)" ,
is this normal ?? :
$id == 0;
NULL == $id
: bool = TRUE
NULL === $id
: bool = FALSE
For me, (0 == NULL) is not true ???
----
Manual Page -- http://www.php.net/manual/en/language.types.null.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35577
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35577&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35577&report=yes