CVS update: php3/doc/chapters
| From: | cslawi | Date: | Sun, 13 Jun 1999 22:59:38 +0000 |
| Subject: | CVS update: php3/doc/chapters | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-6938@lists.php.net to get a copy of this message | ||
Date: Sunday June 13, 1999 @ 18:59
Author: cslawi
Update of /repository/php3/doc/chapters
In directory php:/tmp/cvs-serv11778/chapters
Modified Files:
lang-syntax.sgml
Log Message:
Various small cleanups.
Index: php3/doc/chapters/lang-syntax.sgml
diff -u php3/doc/chapters/lang-syntax.sgml:1.43 php3/doc/chapters/lang-syntax.sgml:1.44
--- php3/doc/chapters/lang-syntax.sgml:1.43 Fri May 28 18:22:22 1999
+++ php3/doc/chapters/lang-syntax.sgml Sun Jun 13 18:59:38 1999
@@ -826,24 +826,24 @@
exponent. The exponent is an 'e' or 'E' followed by one or more
digits.
+ <simpara>
+ When the first expression is a string, the type of the variable
+ will depend on the second expression.
+
<informalexample>
<programlisting>
-$foo = 1 + "10.5"; // $foo is double (11.5)
-$foo = 1 + "-1.3e3"; // $foo is double (-1299)
-$foo = 1 + "bob-1.3e3"; // $foo is integer (1)
-$foo = 1 + "bob3"; // $foo is integer (1)
+$foo = 1 + "10.5"; // $foo is double (11.5)
+$foo = 1 + "-1.3e3"; // $foo is double (-1299)
+$foo = 1 + "bob-1.3e3"; // $foo is integer (1)
+$foo = 1 + "bob3"; // $foo is integer (1)
$foo = 1 + "10 Small Pigs"; // $foo is integer (11)
-$foo = 1 + "10 Little Piggies"; // $foo is integer (11);
-$foo = "10.0 pigs " + 1; // $foo is int (11)
+$foo = 1 + "10 Little Piggies"; // $foo is integer (11)
+$foo = "10.0 pigs " + 1; // $foo is integer (11)
$foo = "10.0 pigs " + 1.0; // $foo is double (11)
</programlisting>
</informalexample>
<simpara>
- The type of the variable depends on the second not on the first
- expression, when the first expression is a string.
-
- <simpara>
For more information on this conversion, see the Unix manual
page for strtod(3).
</sect1>
@@ -1997,8 +1997,9 @@
<title><literal>continue</literal></title>
<para>
- <literal>continue</literal> jumps to the beginning of enclosing the looping
- construct.
+ <literal>continue</literal> is used within looping structures to
+ skip the rest of the current loop iteration and continue
+ execution at the beginning of the next iteration.
<informalexample>
<programlisting>