goba Mon Nov 4 06:03:26 2002 EDT Modified files: /phpdoc/en/language types.xml Log: Adding more info on float conversion and some more cross references Index: phpdoc/en/language/types.xml diff -u phpdoc/en/language/types.xml:1.92 phpdoc/en/language/types.xml:1.93 --- phpdoc/en/language/types.xml:1.92 Mon Nov 4 05:53:41 2002 +++ phpdoc/en/language/types.xml Mon Nov 4 06:03:25 2002 @@ -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 @@ 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"> @@ -1088,6 +1099,12 @@ ]]> </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>
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php