mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
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:
parent
b47b285d95
commit
1312852e14
1 changed files with 7 additions and 1 deletions
|
@ -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;</literal> as
|
||||
<parameter>thousands_sep</parameter> on the number
|
||||
<literal>1000</literal>, <function>number_format</function> will
|
||||
return <literal>1&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>
|
||||
|
|
Loading…
Reference in a new issue