note 35577 deleted from language.types.null by vincent
| From: | vincent@php.net | Date: | Sat, 06 Sep 2003 16:50:40 +0000 |
| Subject: | note 35577 deleted from language.types.null by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-55548@lists.php.net to get a copy of this message | ||
Note Submitter: thierry.bo@netcourrier.com
----
[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 ???