- Correct conversion example (fixes bug #17388)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@83382 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Derick Rethans 2002-05-24 18:49:33 +00:00
parent 2c03c27a35
commit 4cc4989e3a

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.79 $ -->
<!-- $Revision: 1.80 $ -->
<chapter id="language.types">
<title>Types</title>
@ -1004,10 +1004,6 @@ $last = $str{strlen($str)-1};
exponent. The exponent is an 'e' or 'E' followed by one or more
digits.
</para>
<simpara>
When the first expression is a string, the type of the variable
will depend on the second expression.
</simpara>
<informalexample>
<programlisting role="php">
<![CDATA[
@ -1017,7 +1013,7 @@ $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 integer (11)
$foo = "10.0 pigs " + 1; // $foo is float (11)
$foo = "10.0 pigs " + 1.0; // $foo is float (11)
]]>
</programlisting>