note 3458 modified in Constants by ronabop
| From: | ronabop@php.net | Date: | Sun, 03 Sep 2000 20:34:50 +0000 |
| Subject: | note 3458 modified in Constants by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4084@lists.php.net to get a copy of this message | ||
You can't define a constant that is another constant. In the same versions where
define('FOO', TRUE) won't work, neither will define ('BAR', __LINE__). At
least one of the DOS versions of php3 reliably demonstrates this behaviour. I'd call it a
"no-no" to try and define a constant based on another constant.
http://www.php.net/manual/constants.php