From 2c4e0aded14d7077ff555d9f5428f9e4a24ba710 Mon Sep 17 00:00:00 2001 From: Damien Seguy Date: Wed, 11 Jul 2001 11:44:15 +0000 Subject: [PATCH] Clarified the constant() stuff git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@51195 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/constants.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/language/constants.xml b/language/constants.xml index 1dfa87068c..c34583ca69 100644 --- a/language/constants.xml +++ b/language/constants.xml @@ -44,8 +44,9 @@ You can get the value of a constant by simply specifying its name. Unlike with variables, you should not prepend a constant with a $. - You can also use the constant-function, for - example if the name of the constant is variable. + You can also use the function constant, to + read a constant's value, if you are to obtain the constant's name + dynamically. Use get_defined_constants to get a list of all defined constants.