svn: /phpdoc/en/trunk/reference/strings/functions/ number-format.xml
| From: | Jakub Vrana | Date: | Thu, 30 Jun 2011 12:38:03 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/strings/functions/ number-format.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-8348@lists.php.net to get a copy of this message | ||
vrana Thu, 30 Jun 2011 12:38:03 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=312670
Log:
Accepts multiple-bytes separators since PHP 5.4.0
Changed paths:
U phpdoc/en/trunk/reference/strings/functions/number-format.xml
Modified: phpdoc/en/trunk/reference/strings/functions/number-format.xml
===================================================================
--- phpdoc/en/trunk/reference/strings/functions/number-format.xml 2011-06-30 12:33:15 UTC (rev
312669)
+++ phpdoc/en/trunk/reference/strings/functions/number-format.xml 2011-06-30 12:38:03 UTC (rev
312670)
@@ -76,12 +76,6 @@
<para>
Sets the separator for the decimal point.
</para>
- <para>
- 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>
<varlistentry>
@@ -90,24 +84,39 @@
<para>
Sets the thousands separator.
</para>
- <para>
- 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 in the description of the <parameter>dec_point</parameter>
- parameter, then this function is not multibyte aware so using multibyte
- characters as separators will result in broken sequences.
- </para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <para>
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>5.4.0</entry>
+ <entry>
+ This function now supports multiple bytes in
+ <parameter>dec_point</parameter> and
+ <parameter>thousands_sep</parameter>. Only the first byte of each
+ seperator was used in older versions.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </refsect1>
+
<refsect1 role="examples">
&reftitle.examples;
<para>