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:
Etienne Kneuss 2006-06-11 08:53:15 +00:00
parent f918be156e
commit a1883180b5

View file

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