note 10466 added to define
| From: | Marianne Roger | Date: | Fri, 05 Jan 2001 13:21:17 +0000 |
| Subject: | note 10466 added to define | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9403@lists.php.net to get a copy of this message | ||
Precision about "Define must be used BEFORE any place it is used.":
It's also when a constant is used in a function. If a function is defined before the constant,
when this function is used, it knows that this constant is defined but doesn't know it's
value. Fortunately, with 'eval', it's ok.
(behavior observed with php 3.0.16)
http://www.php.net/manual/function.define.php