Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a111f6f

Browse files
committed
adding note to language constructs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@125705 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent e5f0406 commit a111f6f

7 files changed

Lines changed: 20 additions & 9 deletions

File tree

language-snippets.ent

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ linkend="features.safe-mode">safe mode</link> is enabled, PHP checks whether
120120
the directory in which you are about to operate has the same UID (owner) as the
121121
script that is being executed.</simpara></note>'>
122122

123+
<!ENTITY note.language-construct '<note><simpara>Because this is a
124+
language construct and not a function, it cannot be called using
125+
<link linkend="functions.variable-functions">variables functions</link></simpara>
126+
</note>'>
127+
123128
<!-- Common pieces in features/safe-mode.xml
124129
Jade doesn't allow in-line entities, so I put them here... Though they
125130
should have been inline in safe-mode.xml -->

language/control-structures.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="iso-8859-1"?>
2-
<!-- $Revision: 1.69 $ -->
2+
<!-- $Revision: 1.70 $ -->
33
<chapter id="control-structures">
44
<title>Control Structures</title>
55

@@ -1031,6 +1031,7 @@ print_r (profile (TRUE));
10311031
The <function>require</function> statement includes and evaluates
10321032
the specific file.
10331033
</simpara>
1034+
&note.language-construct;
10341035
<simpara>
10351036
<function>require</function> includes and evaluates a specific file.
10361037
Detailed information on how this inclusion works is described in the
@@ -1096,6 +1097,7 @@ require ('somefile.txt');
10961097
The <function>include</function> statement includes and evaluates
10971098
the specified file.
10981099
</simpara>
1100+
&note.language-construct;
10991101
<simpara>
11001102
The documentation below also applies to <function>require</function>.
11011103
The two constructs are identical in every way except how they handle

reference/strings/functions/echo.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="iso-8859-1"?>
2-
<!-- $Revision: 1.8 $ -->
2+
<!-- $Revision: 1.9 $ -->
33
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
44
<refentry id="function.echo">
55
<refnamediv>
@@ -21,9 +21,9 @@
2121
language construct) so you are not required to use parentheses
2222
with it. In fact, if you want to pass more than one parameter
2323
to echo, you must not enclose the parameters within parentheses.
24-
It is not possible to use <function>echo</function> in a
25-
<link linkend="functions.variable-functions">variable function</link>
26-
context.
24+
</para>
25+
&note.language-construct;
26+
<para>
2727
<example>
2828
<title><function>echo</function> examples</title>
2929
<programlisting role="php">

reference/strings/functions/print.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="iso-8859-1"?>
2-
<!-- $Revision: 1.6 $ -->
2+
<!-- $Revision: 1.7 $ -->
33
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
44
<refentry id="function.print">
55
<refnamediv>
@@ -20,6 +20,7 @@
2020
language construct) so you are not required to use parentheses
2121
with it.
2222
</para>
23+
&note.language-construct;
2324
<example>
2425
<title><function>print</function> examples</title>
2526
<programlisting role="php">

reference/var/functions/empty.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="iso-8859-1"?>
2-
<!-- $Revision: 1.3 $ -->
2+
<!-- $Revision: 1.4 $ -->
33
<!-- splitted from ./en/functions/var.xml, last change in rev 1.2 -->
44
<refentry id="function.empty">
55
<refnamediv>
@@ -17,6 +17,7 @@
1717
<function>empty</function> is a language construct.
1818
</para>
1919
</note>
20+
&note.language-construct;
2021
<para>
2122
This is the opposite of
2223
<literal>(boolean) <parameter>var</parameter></literal>,

reference/var/functions/isset.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="iso-8859-1"?>
2-
<!-- $Revision: 1.7 $ -->
2+
<!-- $Revision: 1.8 $ -->
33
<!-- splitted from ./en/functions/var.xml, last change in rev 1.2 -->
44
<refentry id="function.isset">
55
<refnamediv>
@@ -19,6 +19,7 @@
1919
<function>isset</function> is a language construct.
2020
</para>
2121
</note>
22+
&note.language-construct;
2223
<simpara>
2324
Returns &true; if <parameter>var</parameter> exists; &false; otherwise.
2425
</simpara>

reference/var/functions/unset.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="iso-8859-1"?>
2-
<!-- $Revision: 1.2 $ -->
2+
<!-- $Revision: 1.3 $ -->
33
<!-- splitted from ./en/functions/var.xml, last change in rev 1.2 -->
44
<refentry id="function.unset">
55
<refnamediv>
@@ -19,6 +19,7 @@
1919
<function>unset</function> is a language construct.
2020
</para>
2121
</note>
22+
&note.language-construct;
2223
<para>
2324
<function>unset</function> destroys the specified variables. Note
2425
that in PHP 3, <function>unset</function> will always return &true;

0 commit comments

Comments
 (0)