Re: NULL Coercion Consistency
| From: | Mark Randall | Date: | Sun, 08 May 2022 11:38:17 +0000 |
| Subject: | Re: NULL Coercion Consistency | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-117698@lists.php.net to get a copy of this message | ||
On 08/05/2022 11:48, Jordan LeDoux wrote:
This is not the case with null. If you use the unset() function on a variable for example, it will var_dump as null *and* it will pass an is_null() check *and* it will pass a $var === null *and* it will return false for an isset() check. Null loses these qualities if it is cast to *any* scalar.Fortunately the writing is on the wall for the undefined cases, but that doesn't take away from your argument.