mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
6186f075b7
commit
2c4e0aded1
1 changed files with 3 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue