mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Fix #37776 (constants cannot be referenced before being defined)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@214603 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
f918be156e
commit
a1883180b5
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.43 $ -->
|
||||
<!-- $Revision: 1.44 $ -->
|
||||
<chapter id="language.constants">
|
||||
<title>Constants</title>
|
||||
|
||||
|
@ -62,7 +62,8 @@ define("__FOO__", "something");
|
|||
<simpara>
|
||||
You can define a constant by using the
|
||||
<function>define</function>-function. Once a constant is defined,
|
||||
it can never be changed or undefined.
|
||||
it can never be changed or undefined. Unlike functions, constants need to
|
||||
be defined before they are referenced.
|
||||
</simpara>
|
||||
<simpara>
|
||||
Only scalar data (<type>boolean</type>, <type>integer</type>,
|
||||
|
|
Loading…
Reference in a new issue