mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix #37776 (move from constants to define)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@214823 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
e81f680bde
commit
aa617da6c7
2 changed files with 4 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.44 $ -->
|
||||
<!-- $Revision: 1.45 $ -->
|
||||
<chapter id="language.constants">
|
||||
<title>Constants</title>
|
||||
|
||||
|
@ -62,8 +62,7 @@ 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. Unlike functions, constants need to
|
||||
be defined before they are referenced.
|
||||
it can never be changed or undefined.
|
||||
</simpara>
|
||||
<simpara>
|
||||
Only scalar data (<type>boolean</type>, <type>integer</type>,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/misc.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.define">
|
||||
<refnamediv>
|
||||
|
@ -15,7 +15,7 @@
|
|||
<methodparam choice="opt"><type>bool</type><parameter>case_insensitive</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Defines a named constant. See the
|
||||
Defines a named constant at runtime. See the
|
||||
<link linkend="language.constants">section on constants</link>
|
||||
for more details.
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue