Date: 07/08/00
- Next message: Thomas Schuermann: "[PHP-DOC] cvs: phpdoc /de/functions strings.xml"
- Previous message: Egon Schmid: "[PHP-DOC] cvs: phpdoc /en/functions misc.xml"
- Next in thread: Wolfgang Drews: "[PHP-DOC] cvs: phpdoc /de/language control-structures.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
tschuer Sat Jul 8 10:53:15 2000 EDT
Modified files:
/phpdoc/de/language control-structures.xml
Log:
Some minor corrections
Index: phpdoc/de/language/control-structures.xml
diff -u phpdoc/de/language/control-structures.xml:1.10 phpdoc/de/language/control-structures.xml:1.11
--- phpdoc/de/language/control-structures.xml:1.10 Tue Jul 4 12:48:53 2000
+++ phpdoc/de/language/control-structures.xml Sat Jul 8 10:53:15 2000
@@ -249,7 +249,7 @@
/* Beispiel 1 */
$i = 1;
-while ($i <= 10) {
+while ($i <= 10) {
print $i++; /* es wird erst $i ausgegeben,
bevor der Wert erhöht wird
(post-increment) */
@@ -258,7 +258,7 @@
/* Beispiel 2 */
$i = 1;
-while ($i <= 10):
+while ($i <= 10):
print $i;
$i++;
endwhile;
@@ -305,12 +305,12 @@
<informalexample>
<programlisting role="php">
do {
- if ($i < 5) {
+ if ($i < 5) {
print "i ist nicht gross genug";
break;
}
$i *= $factor;
- if ($i < $minimum_limit) {
+ if ($i < $minimum_limit) {
break;
}
print "i ist ok";
@@ -371,14 +371,14 @@
<programlisting role="php">
/* Beispiel 1 */
-for ($i = 1; $i <= 10; $i++) {
+for ($i = 1; $i <= 10; $i++) {
print $i;
}
/* Beispiel 2 */
for ($i = 1;;$i++) {
- if ($i > 10) {
+ if ($i > 10) {
break;
}
print $i;
@@ -388,7 +388,7 @@
$i = 1;
for (;;) {
- if ($i > 10) {
+ if ($i > 10) {
break;
}
print $i;
@@ -397,14 +397,14 @@
/* Beispiel 4 */
-for ($i = 1; $i <= 10; print $i, $i++) ;
+for ($i = 1; $i <= 10; print $i, $i++) ;
</programlisting>
</informalexample>
</para>
<simpara>
Selbstverständlich sieht das erste (oder das vierte) Beispiel am
- besten aus, aber sie werden noch feststellen, dass es oftmals
- ganz nützlich sein kann, leere Parameter in
+ besten aus, aber sie werden noch feststellen, dass es oftmals ganz
+ nützlich sein kann, leere Parameter in
<literal>for</literal>-Schleifen zu verwenden.
</simpara>
<para>
@@ -894,7 +894,7 @@
<informalexample>
<programlisting role="php">
$files = array ('first.inc', 'second.inc', 'third.inc');
-for ($i = 0; $i < count($files); $i++) {
+for ($i = 0; $i < count($files); $i++) {
include $files[$i];
}
</programlisting>
@@ -958,7 +958,7 @@
<filename>test.inc</filename>) im gleichen Verzeichnis wie die
Hauptdatei stehen muss:
<programlisting role="php">
-<?php
+<?php
echo "Vor dem Return <br>\n";
if (1) {
return 27;
@@ -970,7 +970,7 @@
<para>
Die Datei <filename>main.html</filename> enthält folgendes:
<programlisting role="php">
-<?php
+<?php
$retval = include ('test.inc');
echo "Datei gibt zurück: '$retval'<br>\n";
?>
@@ -990,7 +990,7 @@
Die Datei <filename>main.html</filename> soll nun folgendes
enthalten:
<programlisting role="php">
-<?php
+<?php
include ('test.inc');
echo "Zurück in main.html<br>\n";
?>
- Next message: Thomas Schuermann: "[PHP-DOC] cvs: phpdoc /de/functions strings.xml"
- Previous message: Egon Schmid: "[PHP-DOC] cvs: phpdoc /en/functions misc.xml"
- Next in thread: Wolfgang Drews: "[PHP-DOC] cvs: phpdoc /de/language control-structures.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

