Fixed bug #53113 (number_format(): wrong usage of term "character" in multi-byte context)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@304600 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Kalle Sommer Nielsen 2010-10-22 02:05:08 +00:00
parent b47b285d95
commit 1312852e14

View file

@ -85,12 +85,18 @@
Sets the thousands separator.
</para>
<para>
Only the first character of <parameter>thousands_sep</parameter>
Only the first byte of <parameter>thousands_sep</parameter>
is used. For example, if you use <literal>&amp;amp;</literal> as
<parameter>thousands_sep</parameter> on the number
<literal>1000</literal>, <function>number_format</function> will
return <literal>1&amp;000</literal>.
</para>
<para>
As noted above, this function only takes the first byte for the
separator. This means that multibyte characters will
<emphasis>NOT</emphasis> work, resulting in a broken multibyte
sequence.
</para>
</listitem>
</varlistentry>
</variablelist>