note 76291 deleted from function.define by cmb
| From: | cmb@php.net | Date: | Sun, 06 Oct 2019 07:47:16 +0000 |
| Subject: | note 76291 deleted from function.define by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-212468@lists.php.net to get a copy of this message | ||
Note Submitter: nl-x at bita dot nl
----
Watch out. You can define a new constant with the name NULL with
define("NULL","FOO");. But you must use the function constant("NULL");
to get it's value. NULL without the function call to the constant() function will still
retrieve the special type NULL value.
Within a class there is no problem, as const NULL="Foo"; will be accessible as
myClass::NULL.