cvs: phpdoc-nl /language control-structures.xml

[email protected] ("Sacha Telgenhof Oude Koehorst")
Newsgroups php.doc.nl
Message-ID <cvssachat1106605529@cvsserver>
sachat		Mon Jan 24 17:25:29 2005 EDT

  Modified files:              
    /phpdoc-nl/language	control-structures.xml 
  Log:
  Fixed some typos in control-structures.xml
sachat-20050124172529.txt (text/plain, 12.4 KB)
http://cvs.php.net/diff.php/phpdoc-nl/language/control-structures.xml?r1=1.18&r2=1.19&ty=u
Index: phpdoc-nl/language/control-structures.xml
diff -u phpdoc-nl/language/control-structures.xml:1.18 phpdoc-nl/language/control-structures.xml:1.19
--- phpdoc-nl/language/control-structures.xml:1.18	Fri Jun 13 08:46:53 2003
+++ phpdoc-nl/language/control-structures.xml	Mon Jan 24 17:25:29 2005
@@ -72,7 +72,7 @@
     voor conditionele uitvoering van verschillende delen van je programma.
    </simpara>
   </sect1>
- 
+
   <sect1 id="control-structures.else">
    <title><literal>else</literal></title>
    <para>
@@ -106,7 +106,7 @@
 
    </para>
   </sect1>
- 
+
   <sect1 id="control-structures.elseif">
    <title><literal>elseif</literal></title>
    <para>
@@ -148,13 +148,13 @@
     Het <literal>elseif</literal> statement wordt alleen maar
     uitgevoerd indien alle voorgaande <literal>if</literal>
     expressies &eacute;n alle voorafgaande
-    <literal>elseif</literal> expressies evalueren tot 
+    <literal>elseif</literal> expressies evalueren tot
     &false;, en de huidige
     <literal>elseif</literal> expressie evalueerd tot
     &true;.
    </simpara>
   </sect1>
- 
+
   <sect1 id="control-structures.alternative-syntax">
    <title>Alternatieve syntax voor control structures</title>
    <para>
@@ -195,7 +195,7 @@
    </simpara>
    <para>
     De alternatieve syntax is ook te gebruiken voor <literal>else</literal>
-    en <literal>elseif</literal>. Het volgende is een 
+    en <literal>elseif</literal>. Het volgende is een
     <literal>if</literal> structuur met <literal>elseif</literal> en
     <literal>else</literal> in het alternatieve formaat:
     <informalexample>
@@ -264,12 +264,12 @@
 
 $i = 1;
 while ($i &lt;= 10) {
-    print $i++;  /* De waarde wordt getoond voordat deze 
+    print $i++;  /* De waarde wordt getoond voordat deze
                     wordt opgehoogt (post-increment) */
 }
- 
+
 /* voorbeeld 2 */
- 
+
 $i = 1;
 while ($i &lt;= 10):
     print $i;
@@ -279,12 +279,12 @@
     </informalexample>
    </para>
   </sect1>
- 
+
   <sect1 id="control-structures.do.while">
    <title><literal>do..while</literal></title>
    <simpara>
     <literal>do..while</literal> loops lijken erg veel op
-    <literal>while</literal> loops, alleen wordt de vergelijking nu 
+    <literal>while</literal> loops, alleen wordt de vergelijking nu
     gecontroleerd aan het einde van de interatie, in plaats van aan het
     begin. Het grootste verschil met normale <literal>while</literal>
     loops is dat er altijd minimaal &eacute;&eacute;n iteratie van een
@@ -293,13 +293,13 @@
     dit in tegenstelling tot de normale <literal>while</literal> loop,
     waar de expressie aan het begin van een iteratie wordt geevalueerd,
     Als de expressie meteen al aan het begin evauleerd tot
-    &false;, dan zal de loop niet &eacute;&eacute;n 
+    &false;, dan zal de loop niet &eacute;&eacute;n
     keer worden uitgevoerd.
    </simpara>
    <para>
     Er is maar &eacute;&eacute;n systax voor
 	<literal>do..while</literal> loops:
- 
+
     <informalexample>
      <programlisting role="php">
 $i = 0;
@@ -349,7 +349,7 @@
     deze `feature'.
    </simpara>
   </sect1>
- 
+
   <sect1 id="control-structures.for">
    <title><literal>for</literal></title>
    <para>
@@ -393,22 +393,22 @@
     <informalexample>
      <programlisting role="php">
 /* voorbeeld 1 */
- 
+
 for ($i = 1; $i &lt;= 10; $i++) {
     print $i;
 }
- 
+
 /* voorbeeld 2 */
- 
+
 for ($i = 1;;$i++) {
     if ($i &gt; 10) {
         break;
     }
     print $i;
 }
- 
+
 /* voorbeeld 3 */
- 
+
 $i = 1;
 for (;;) {
     if ($i &gt; 10) {
@@ -417,9 +417,9 @@
     print $i;
     $i++;
 }
- 
+
 /* voorbeeld 4 */
- 
+
 for ($i = 1; $i &lt;= 10; print $i, $i++) ;
      </programlisting>
     </informalexample>
@@ -572,7 +572,7 @@
     </informalexample>
    </para>
   </sect1>
- 
+
   <sect1 id="control-structures.break">
    <title><literal>break</literal></title>
    <simpara>
@@ -583,7 +583,7 @@
    <simpara>
     <literal>break</literal> accepteert een optioneel numeriek argument
     waarmee wordt aangegeven uit hoeveel geneste blokken moet worden
-    teruggekeerd. 
+    teruggekeerd.
    </simpara>
    <para>
     <informalexample>
@@ -615,7 +615,7 @@
     </informalexample>
    </para>
   </sect1>
- 
+
   <sect1 id="control-structures.continue">
    <title><literal>continue</literal></title>
    <simpara>
@@ -659,7 +659,7 @@
      </informalexample>
     </para>
   </sect1>
- 
+
   <sect1 id="control-structures.switch">
    <title><literal>switch</literal></title>
    <simpara>
@@ -669,7 +669,7 @@
     en zul je een stuk code willen uitvoeren, dat afhangt
     van de waarde waarmee de expressie overeenkomt. Dit is precies waar
     het <literal>switch</literal> statement voor is.
-   </simpara> 
+   </simpara>
    <para>
     De volgende twee voorbeelden zijn twee verschillende manieren om
     hetzelfde te doen, de &eacute;&eacute;n met een serie
@@ -686,7 +686,7 @@
 if ($i == 2) {
     print "i is gelijk aan 2";
 }
- 
+
 switch ($i) {
     case 0:
         print "i is gelijk aan 0";
@@ -730,7 +730,7 @@
     </informalexample>
    </para>
    <simpara>
-    Als in het bovenstaande voorbeeld $i gelijk is aan 0, zal PHP 
+    Als in het bovenstaande voorbeeld $i gelijk is aan 0, zal PHP
     alle print statements uitvoeren! Als $i gelijk is aan 1, dan
     zal PHP de laatste twee print statements uitvoeren. Alleen als
     $i gelijk is aan 2, krijg je het 'gewenste' resultaat, dan wordt
@@ -860,7 +860,7 @@
    </para>
    <para>
     The event(s) that occurs on each tick is specified using the
-    <function>register_tick_function</function>. See the example 
+    <function>register_tick_function</function>. See the example
     below for more details. Note that more than one event can occur
     for each tick.
    </para>
@@ -922,7 +922,7 @@
    </simpara>
    </sect2>
   </sect1>
-  
+
   <sect1 id="function.require">
    <title><function>require</function></title>
    <simpara>
@@ -963,7 +963,7 @@
     het bestand in, <emphasis>zelfs als de regel waarop de require
     call staat nooit wordt uitgevoerd.</emphasis>. Als je een
     bestand conditioneel wilt laden, gebruik dan de
-    <function>include</function> functie. 
+    <function>include</function> functie.
     Een conditioneel statement heeft geen invloed op een
     <function>require</function>. Als een regel waarop de
     <function>require</function> staat niet wordt uitgevoerd,
@@ -1001,7 +1001,7 @@
    <para>
     Als de <function>require</function>ed file wordt opgeroepen over HTTP
     met gebruikmakend van de fopen wrappers, en als de target server dit
-    bestand kan interpreteren als PHP code, dan mogen er variabelen 
+    bestand kan interpreteren als PHP code, dan mogen er variabelen
     worden meegegeven aan de <function>require</function>ed file met
     gebruik maken als een HTTP GET regel (zie voorbeeld). Dit is niet
     precies hetzelfde als <function>require</function>ing een bestand
@@ -1021,10 +1021,10 @@
 
 /* Werkt niet; er wordt gekeken naar het bestand 'file.php?varone=1&amp;vartwo=2'
  * op het huidige bestandssysteem. */
-require ("file.php?varone=1&amp;vartwo=2");               
+require ("file.php?varone=1&amp;vartwo=2");
 
 /* Werkt. */
-require ("http://someserver/file.php?varone=1&amp;vartwo=2"); 
+require ("http://someserver/file.php?varone=1&amp;vartwo=2");
 
 $varone = 1;
 $vartwo = 2;
@@ -1036,7 +1036,7 @@
    <simpara>
     In PHP 3 is het mogelijk een <literal>return</literal> waarde terug
     te geven vanuit een <function>require</function>ed bestand, zo lang
-    dat statement optreed binnen de globale scope van het 
+    dat statement optreed binnen de globale scope van het
     <function>require</function>ed bestand. Het mag niet optreden binnen
     een blok (d.w.z. binnen accolades ({}). In PHP 4, is deze mogelijkheid
     echter niet meer aanwezig. Als je dit toch wilt, zie dan de
@@ -1048,7 +1048,7 @@
 	en <function>virtual</function>.
    </simpara>
   </sect1>
- 
+
   <sect1 id="function.include">
    <title><function>include</function></title>
    <simpara>
@@ -1088,7 +1088,7 @@
     </informalexample>
    </para>
    <para>
-    <function>include</function> verschilt van het 
+    <function>include</function> verschilt van het
     <function>require</function> statement op &eacute;&eacute; punt.
     Een <function>include</function> statement wordt elke keer
     ge-evalueerd als deze wordt tegengekomen (en ook alleen maar tijdens
@@ -1104,14 +1104,14 @@
     <informalexample>
      <programlisting role="php">
 /* Dit is FOUT en zal niet werken zoals het bedoeld is */
- 
+
 if ($condition)
     include($file);
 else
     include($other);
- 
+
 /* Dit is GOED. */
- 
+
 if ($condition) {
     include($file);
 } else {
@@ -1121,16 +1121,16 @@
     </informalexample>
    </para>
    <simpara>
-    In zowerl PHP 3 als PHP 4, is het mogelijk om een
+    In zowel PHP 3 als PHP 4, is het mogelijk om een
     <literal>return</literal> statement uit te voeren in een
     ge-<function>include</function>d file, om bijvoorbeeld een fout
     conditie terug tegeven aan het script wat het bestand uitvoerde.
-    Er zijn wel verschillend in de manier waarop dit werkt. Het eerste
+    Er zijn wel verschillen in de manier waarop dit werkt. Het eerste
     verschil is dat in PHP 3 het <literal>return</literal> zich niet
     binnen een blok mag bevinden, tenzij het een functie blok betreft.
     In dit laatste geval heeft het <literal>return</literal> statement
     betrekking op de functie natuurlijk, en niet op de gehele file.
-    In PHP 4 bestaat deze restrictie echte niet. Het is in PHP 4 ook
+    In PHP 4 bestaat deze restrictie echter niet. Het is in PHP 4 ook
     mogelijk om waardes terug te geven van uit
     <function>include</function>d files. Je kunt dan de return waarde van
     het <function>include</function> statement gebruiken net zoals een
@@ -1190,7 +1190,7 @@
      </screen>
      However, PHP 3 will give the following output:
      <screen>
-Before the return 
+Before the return
 27Back in main.html
 
 Parse error: parse error in /home/torben/public_html/phptest/main.html on line 5
@@ -1234,7 +1234,7 @@
     <informalexample>
      <programlisting role="php">
 /* This example assumes that someserver is configured to parse .php
- * files and not .txt files. Also, 'works' here means that the variables 
+ * files and not .txt files. Also, 'works' here means that the variables
  * $varone and $vartwo are available within the include()ed file. */
 
 /* Won't work; file.txt wasn't handled by someserver. */
@@ -1242,10 +1242,10 @@
 
 /* Won't work; looks for a file named 'file.php?varone=1&amp;vartwo=2'
  * on the local filesystem. */
-include ("file.php?varone=1&amp;vartwo=2");               
+include ("file.php?varone=1&amp;vartwo=2");
 
 /* Works. */
-include ("http://someserver/file.php?varone=1&amp;vartwo=2"); 
+include ("http://someserver/file.php?varone=1&amp;vartwo=2");
 
 $varone = 1;
 $vartwo = 2;
@@ -1260,7 +1260,7 @@
 	and <function>virtual</function>.
    </simpara>
   </sect1>
- 
+
   <sect1 id="function.require-once">
    <title><function>require_once</function></title>
    <para>
@@ -1333,7 +1333,7 @@
 	 </programlisting>
 	 </informalexample>
 	 By modifying <literal>foolib.inc</literal> and
-	 <literal>cause_errror_require.php</literal> 
+	 <literal>cause_errror_require.php</literal>
 	 to use <function>require_once</function>
 	 instead of <function>require</function> and renaming the
 	 last one to <literal>avoid_error_require_once.php</literal>, we have:
@@ -1387,7 +1387,7 @@
 	 for that purpose.
    </para>
    <para>
-     For more examples on using <function>require_once</function> and 
+     For more examples on using <function>require_once</function> and
 	 <function>include_once</function>, look at the PEAR code included in
 	 the latest PHP source code distributions.
    </para>
@@ -1399,7 +1399,7 @@
 	and <function>virtual</function>.
    </para>
   </sect1>
-  
+
   <sect1 id="function.include-once">
    <title><function>include_once</function></title>
    <para>
@@ -1418,7 +1418,7 @@
 	variable value reassignments, etc.
    </para>
    <para>
-     For more examples on using <function>require_once</function> and 
+     For more examples on using <function>require_once</function> and
 	 <function>include_once</function>, look at the PEAR code included in
 	 the latest PHP source code distributions.
    </para>
@@ -1433,9 +1433,9 @@
 	and <function>virtual</function>.
    </para>
   </sect1>
- 
+
  </chapter>
- 
+
  <!-- Keep this comment at the end of the file
  Local variables:
  mode: sgml
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.