note 13461 added to function.defined.php
| From: | a at rmci dot net | Date: | Sun, 17 Jun 2001 23:29:11 +0000 |
| Subject: | note 13461 added to function.defined.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14333@lists.php.net to get a copy of this message | ||
Remember not to do this
if(defined(CONSTANT)) {
}
always quotate the define your looking for because CONSTANT will be replaced with the value of
CONSTANT before defined is called.
if(defined("CONSTANT")) {
}
http://www.php.net/manual/en/function.defined.php