note 16344 added to function.constant
| From: | php-general at lists dot php dot net | Date: | Thu, 25 Oct 2001 14:36:29 +0000 |
| Subject: | note 16344 added to function.constant | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-19425@lists.php.net to get a copy of this message | ||
the example is not usefull, but silly.
A better one is this:
you have an array $test["abc"]="CONSTNAME";
echo constant($test["abc"]);
returns the value of CONSTNAME
--
http://www.php.net/manual/en/function.constant.php
http://master.php.net/manage/user-notes.php?action=edit+16344
http://master.php.net/manage/user-notes.php?action=delete+16344
http://master.php.net/manage/user-notes.php?action=reject+16344