note 30654 added to language.constants

From: Date: Tue, 25 Mar 2003 02:46:16 +0000
Subject: note 30654 added to language.constants
Groups: php.notes 
Request: Send a blank email to php-notes+get-45776@lists.php.net to get a copy of this message
In response to the notes above about variable references in constants, double quotes isn't a proper solution because it parses the variable at the time the constant is defined. The desired behavior is to have the variables parsed at the time the constant is referenced, and this behavior can really only be achieved by using eval(), as described above. -- http://www.php.net/manual/en/language.constants.php http://master.php.net/manage/user-notes.php?action=edit+30654 http://master.php.net/manage/user-notes.php?action=delete+30654 http://master.php.net/manage/user-notes.php?action=reject+30654

« previous php.notes (#45776) next »