note 38588 deleted from language.constants by nlopess
| From: | nlopess@php.net | Date: | Wed, 24 Mar 2004 14:52:36 +0000 |
| Subject: | note 38588 deleted from language.constants by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-67098@lists.php.net to get a copy of this message | ||
Note Submitter: chroniton at gmx dot li
----
In fact, ANY string can be the name of a constant.
<?
define ($name, 'foo');
echo constant($name)
?>
$name can be anything. It will even print 'foo' if $name is undefined (because $name will
evaluate to an empty string in that case).