cvs: phpdoc /en/language constants.xml

From: Date: Wed, 11 Jul 2001 11:44:16 +0000
Subject: cvs: phpdoc /en/language constants.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969336133@lists.php.net to get a copy of this message
dams Wed Jul 11 07:44:16 2001 EDT Modified files: /phpdoc/en/language constants.xml Log: Clarified the constant() stuff Index: phpdoc/en/language/constants.xml diff -u phpdoc/en/language/constants.xml:1.13 phpdoc/en/language/constants.xml:1.14 --- phpdoc/en/language/constants.xml:1.13 Sun Jul 8 12:13:04 2001 +++ phpdoc/en/language/constants.xml Wed Jul 11 07:44:15 2001 @@ -44,8 +44,9 @@ You can get the value of a constant by simply specifying its name. Unlike with variables, you should <emphasis>not</emphasis> prepend a constant with a <literal>$</literal>. - You can also use the <function>constant</function>-function, for - example if the name of the constant is variable. + You can also use the function <function>constant</function>, to + read a constant's value, if you are to obtain the constant's name + dynamically. Use <function>get_defined_constants</function> to get a list of all defined constants. </simpara>

« previous php.doc (#969336133) next »