note 114699 deleted from language.types.null by cmb
| From: | cmb@php.net | Date: | Sat, 07 Nov 2020 18:34:42 +0000 |
| Subject: | note 114699 deleted from language.types.null by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215824@lists.php.net to get a copy of this message | ||
Note Submitter: kuzawinski dot marcin at NOSPAM dot gmail dot com
----
Funny. It looks like, that there is one, and only one possible value for variable $a that will pass
this test:
($a != NULL) && ((bool)$a == NULL)
It's "0" and it works because casting string "0" to boolean gives FALSE
(and it's the only non empty string, that works this way). So remember that casting is not
"transitive".