Add version information

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@312947 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Hannes Magnusson 2011-07-05 18:59:24 +00:00
parent f99ce86940
commit c7aca484fd
19 changed files with 71 additions and 1 deletions

View file

@ -3,6 +3,7 @@
<sect1 xml:id="control-structures.alternative-syntax" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Alternative syntax for control structures</title>
<?phpdoc print-version-for="control-structures.alternative-syntax"?>
<para>
PHP offers an alternative syntax for some of its control
structures; namely, <literal>if</literal>,

View file

@ -3,6 +3,7 @@
<sect1 xml:id="control-structures.break" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title><literal>break</literal></title>
<?phpdoc print-version-for="break"?>
<simpara>
<literal>break</literal> ends execution of the current
<literal>for</literal>, <literal>foreach</literal>,

View file

@ -3,6 +3,7 @@
<sect1 xml:id="control-structures.continue" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title><literal>continue</literal></title>
<?phpdoc print-version-for="continue"?>
<simpara>
<literal>continue</literal> is used within looping structures to
skip the rest of the current loop iteration and continue execution

View file

@ -3,6 +3,7 @@
<sect1 xml:id="control-structures.declare" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title><literal>declare</literal></title>
<?phpdoc print-version-for="declare"?>
<para>
The <literal>declare</literal> construct is used to
set execution directives for a block of code.

View file

@ -3,6 +3,7 @@
<sect1 xml:id="control-structures.do.while" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title><literal>do-while</literal></title>
<?phpdoc print-version-for="dowhile"?>
<simpara>
<literal>do-while</literal> loops are very similar to
<literal>while</literal> loops, except the truth expression is

View file

@ -3,6 +3,7 @@
<sect1 xml:id="control-structures.else" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title><literal>else</literal></title>
<?phpdoc print-version-for="else"?>
<para>
Often you'd want to execute a statement if a certain condition is
met, and a different statement if the condition is not met. This
@ -57,4 +58,4 @@ End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
-->

View file

@ -3,6 +3,7 @@
<sect1 xml:id="control-structures.elseif" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title><literal>elseif</literal>/<literal>else if</literal></title>
<?phpdoc print-version-for="elseif"?>
<para>
<literal>elseif</literal>, as its name suggests, is a combination
of <literal>if</literal> and <literal>else</literal>. Like

View file

@ -3,6 +3,7 @@
<sect1 xml:id="control-structures.for" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title><literal>for</literal></title>
<?phpdoc print-version-for="for"?>
<para>
<literal>for</literal> loops are the most complex loops in PHP.
They behave like their C counterparts. The syntax of a

View file

@ -3,6 +3,7 @@
<sect1 xml:id="control-structures.foreach" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title><literal>foreach</literal></title>
<?phpdoc print-version-for="foreach"?>
<para>
PHP 4 introduced a <literal>foreach</literal> construct, much
like Perl and some other languages. This simply gives an easy way to

View file

@ -3,6 +3,7 @@
<sect1 xml:id="control-structures.goto" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title><literal>goto</literal></title>
<?phpdoc print-version-for="goto"?>
<para>
The <literal>goto</literal> operator can be used to jump to another
section in the program. The target point is specified by a label

View file

@ -3,6 +3,7 @@
<sect1 xml:id="control-structures.if" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title><literal>if</literal></title>
<?phpdoc print-version-for="if"?>
<para>
The <literal>if</literal> construct is one of the most important
features of many languages, PHP included. It allows for

View file

@ -3,6 +3,7 @@
<sect1 xml:id="function.include-once" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title><function>include_once</function></title>
<?phpdoc print-version-for="include_once"?>
<para>
The <function>include_once</function> statement includes and evaluates
the specified file during the execution of the script.

View file

@ -3,6 +3,7 @@
<sect1 xml:id="function.include" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title><function>include</function></title>
<?phpdoc print-version-for="include"?>
<simpara>
The <function>include</function> statement includes and evaluates
the specified file.

View file

@ -3,6 +3,7 @@
<sect1 xml:id="function.require-once" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title><function>require_once</function></title>
<?phpdoc print-version-for="require_once"?>
<para>
The <function>require_once</function> statement is identical to
<function>require</function> except PHP will check if the file has

View file

@ -3,6 +3,7 @@
<sect1 xml:id="function.require" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title><function>require</function></title>
<?phpdoc print-version-for="require"?>
<para>
<function>require</function> is identical to <function>include</function>

View file

@ -3,6 +3,7 @@
<sect1 xml:id="function.return" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>return</title>
<?phpdoc print-version-for="return"?>
<simpara>
If called from within a function, the <function>return</function>
statement immediately ends execution of the current function, and

View file

@ -3,6 +3,7 @@
<sect1 xml:id="control-structures.switch" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title><literal>switch</literal></title>
<?phpdoc print-version-for="switch"?>
<simpara>
The <literal>switch</literal> statement is similar to a series of
IF statements on the same expression. In many occasions, you may

View file

@ -0,0 +1,52 @@
<?xml version='1.0' encoding='utf-8'?>
<!-- $Revision: 288721 $ -->
<!--
Do NOT translate this file
-->
<versions>
<function name='include' from='PHP 4, PHP 5'/>
<function name='include_once' from='PHP 4, PHP 5'/>
<function name='require' from='PHP 4, PHP 5'/>
<function name='require_once' from='PHP 4, PHP 5'/>
<function name='control-structures.alternative-syntax' from='PHP 4, PHP5'/>
<function name='foreach' from='PHP 4, PHP5'/>
<function name='continue' from='PHP 4, PHP5'/>
<function name='switch' from='PHP 4, PHP5'/>
<function name='for' from='PHP 4, PHP5'/>
<function name='require' from='PHP 4, PHP5'/>
<function name='goto' from='PHP 4, PHP5'/>
<function name='elseif' from='PHP 4, PHP5'/>
<function name='dowhile' from='PHP 4, PHP5'/>
<function name='include' from='PHP 4, PHP5'/>
<function name='declare' from='PHP 4, PHP5'/>
<function name='if' from='PHP 4, PHP5'/>
<function name='while' from='PHP 4, PHP5'/>
<function name='include_once' from='PHP 4, PHP5'/>
<function name='require_once' from='PHP 4, PHP5'/>
<function name='return' from='PHP 4, PHP5'/>
<function name='else' from='PHP 4, PHP5'/>
<function name='break' from='PHP 4, PHP5'/>
</versions>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

View file

@ -3,6 +3,7 @@
<sect1 xml:id="control-structures.while" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title><literal>while</literal></title>
<?phpdoc print-version-for="while"?>
<para>
<literal>while</literal> loops are the simplest type of loop in
PHP. They behave just like their C counterparts. The basic form