Some ugly errors corrected (eg. comment without an end,

constant definition, do..while added to the break list, etc.)


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@51066 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Gabor Hojtsy 2001-07-10 12:29:36 +00:00
parent 2e3c730eae
commit 2ad4a19e40

View file

@ -576,7 +576,7 @@ foreach($a as $v1) {
}
}
/* foreach example 5: dynamic arrays
/* foreach example 5: dynamic arrays */
foreach(array(1, 2, 3, 4, 5) as $v) {
print "$v\n";
@ -590,8 +590,9 @@ foreach(array(1, 2, 3, 4, 5) as $v) {
<title><literal>break</literal></title>
<simpara>
<literal>break</literal> ends execution of the current
<literal>for</literal>, <literal>while</literal>,
<literal>foreach</literal> or <literal>switch</literal> structure.
<literal>for</literal>, <literal>foreach</literal>
<literal>while</literal>, <literal>do..while</literal> or
<literal>switch</literal> structure.
</simpara>
<simpara>
<literal>break</literal> accepts an optional numeric argument
@ -827,8 +828,8 @@ endswitch;
<sect1 id="control-structures.declare">
<title><literal>declare</literal></title>
<para>
The <literal>declare</literal> construct is used to is
used to set execution directives for a block of code.
The <literal>declare</literal> construct is used to
set execution directives for a block of code.
The syntax of <literal>declare</literal> is similiar to
the syntax of other flow control constructs:
<informalexample>
@ -1278,7 +1279,7 @@ include ("file.php"); /* Works. */
<title>utils.inc</title>
<programlisting role="php">
&lt;?php
define(PHPVERSION, floor(phpversion()));
define("PHPVERSION", floor(phpversion()));
echo "GLOBALS ARE NICE\n";
function goodTea() {
return "Oolong tea tastes good!";