mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
- 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:
parent
2c03c27a35
commit
4cc4989e3a
1 changed files with 2 additions and 6 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue