mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Adding more info on float conversion and some
more cross references git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@102532 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
d1c40af291
commit
51e24ab11f
1 changed files with 18 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.92 $ -->
|
||||
<!-- $Revision: 1.93 $ -->
|
||||
<chapter id="language.types">
|
||||
<title>Types</title>
|
||||
|
||||
|
@ -525,6 +525,17 @@ EXPONENT_DNUM (({LNUM}|{DNUM})[eE][+-]?{LNUM})
|
|||
or <link linkend="ref.gmp">gmp</link> functions instead.
|
||||
</para>
|
||||
</warning>
|
||||
|
||||
<!-- TODO: add more info -->
|
||||
<sect2 id="language.types.float.casting">
|
||||
<title>Converting to float</title>
|
||||
|
||||
<para>
|
||||
For information on when and how strings are converted to floats,
|
||||
see the section titled <link linkend="language.types.string.conversion">String
|
||||
conversion to numbers</link>.
|
||||
</para>
|
||||
</sect2>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="language.types.string">
|
||||
|
@ -1089,6 +1100,12 @@ echo "\$foo==$foo; type is " . gettype ($foo) . "<br />\n";
|
|||
</programlisting>
|
||||
</informalexample>
|
||||
</para>
|
||||
<para>
|
||||
Do not expect to get the code of one character by converting it
|
||||
to integer (as you would do in C for example). Use the functions
|
||||
<function>ord</function> and <function>chr</function> to convert
|
||||
between charcodes and characters.
|
||||
</para>
|
||||
|
||||
</sect2>
|
||||
</sect1><!-- end string -->
|
||||
|
|
Loading…
Reference in a new issue