Clarified the constant() stuff

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@51195 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Damien Seguy 2001-07-11 11:44:15 +00:00
parent 6186f075b7
commit 2c4e0aded1

View file

@ -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>