svn: /phpdoc/it/trunk/language/control-structures/ break.xml
| From: | Marco Cucinato | Date: | Wed, 19 May 2010 16:08:54 +0000 |
| Subject: | svn: /phpdoc/it/trunk/language/control-structures/ break.xml | ||
| Groups: | php.doc.it | ||
| Request: | Send a blank email to doc-it+get-931@lists.php.net to get a copy of this message | ||
cucinato Wed, 19 May 2010 16:08:54 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=299492
Log:
Sync with EN
Changed paths:
A phpdoc/it/trunk/language/control-structures/break.xml
Added: phpdoc/it/trunk/language/control-structures/break.xml
===================================================================
--- phpdoc/it/trunk/language/control-structures/break.xml (rev 0)
+++ phpdoc/it/trunk/language/control-structures/break.xml 2010-05-19 16:08:54 UTC (rev 299492)
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- EN-Revision: 288721 Maintainer: butera Status: ready -->
+
+<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>
+ <simpara>
+ <literal>break</literal> termina l'esecuzione della struttura di controllo
+ <literal>for</literal>, <literal>foreach</literal>,
+ <literal>while</literal>, <literal>do-while</literal> o
+ <literal>switch</literal> corrente.
+ </simpara>
+ <simpara>
+ <literal>break</literal> accetta un argomento numerico
+ che indica da quanti livelli di strutture annidate si
+ intende "uscire".
+ </simpara>
+ <para>
+ <informalexample>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$arr = array('one', 'two', 'three', 'four',
'stop', 'five');
+while (list(, $val) = each($arr)) {
+ if ($val == 'stop') {
+ break; /* Equivalente a 'break 1;' */
+ }
+ echo "$val<br />\n";
+}
+
+/* Utilizzo dell'argomento facoltativo */
+
+$i = 0;
+while (++$i) {
+ switch ($i) {
+ case 5:
+ echo "At 5<br />\n";
+ break 1; /* Termina solo lo switch. */
+ case 10:
+ echo "At 10; quitting<br />\n";
+ break 2; /* Termina lo switch ed il while. */
+ default:
+ break;
+ }
+}
+?>
+]]>
+ </programlisting>
+ </informalexample>
+ </para>
+</sect1>
+
+<!-- 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
+-->
+
Property changes on: phpdoc/it/trunk/language/control-structures/break.xml
___________________________________________________________________
Added: svn:keywords
+ Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
Added: svn:eol-style
+ native