note 30959 rejected from function.constant by alindeman
| From: | alindeman@php.net | Date: | Fri, 04 Apr 2003 12:29:08 +0000 |
| Subject: | note 30959 rejected from function.constant by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-46224@lists.php.net to get a copy of this message | ||
?!?
People, I don't get this.
"constant() will return the value of the constant indicated by name.
constant() is useful if you need to retrieve the value of a constant, but do not know it's
name. i.e. It is stored in a variable or returned by a function."
Could it be constant(name) in the first phrase, and constant() in the second phrase?
Could anyone give an example of using constant() with NO parameters, please? The sample code above
is an example for constant(parameter) with name GIVEN, that means that the user DOES know the name.
:)