Skip to content

Commit

Permalink
goto doc sync with EN (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen authored Mar 12, 2024
1 parent 5b1d9d9 commit a3a3926
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions language/control-structures/goto.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: e55a1ca9507ab7c6493cca34110fd17656308e51 Maintainer: yannick Status: ready -->
<!-- EN-Revision: 890a03076b2708f65ff15fec9968ad6580131b36 Maintainer: yannick Status: ready -->
<!-- Reviewed: yes -->

<sect1 xml:id="control-structures.goto" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
Expand All @@ -12,8 +12,12 @@
<imageobject>
<imagedata fileref="en/language/figures/xkcd-goto.png" format="PNG"/>
</imageobject>
<caption>
<para>
Image fournie par <link xlink:href="&url.xkcd;292">xkcd</link>
</para>
</caption>
</mediaobject>
Image fournie par <link xlink:href="&url.xkcd;292">xkcd</link>
</para>
<para>
L'opérateur <literal>goto</literal> peut être utilisé pour continuer
Expand All @@ -34,11 +38,13 @@
<programlisting role="php">
<![CDATA[
<?php
goto a;
echo 'Foo';
a:
echo 'Bar';
?>
]]>
</programlisting>
Expand All @@ -56,14 +62,17 @@ Bar
<programlisting role="php">
<![CDATA[
<?php
for($i=0,$j=50; $i<100; $i++) {
while($j--) {
if($j==17) goto end;
}
for ($i = 0, $j = 50; $i < 100; $i++) {
while ($j--) {
if ($j == 17) {
goto end;
}
}
}
echo "i = $i";
end:
echo 'j hit 17';
?>
]]>
</programlisting>
Expand All @@ -82,12 +91,13 @@ j hit 17
<![CDATA[
<?php
goto loop;
for($i=0,$j=50; $i<100; $i++) {
while($j--) {
loop:
}
for ($i = 0, $j = 50; $i < 100; $i++) {
while ($j--) {
loop:
}
}
echo "$i = $i";
?>
]]>
</programlisting>
Expand Down

0 comments on commit a3a3926

Please sign in to comment.