mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Properly defined the constant, removed the extra paragraph, added check into example. This is the last commit, I promise!
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@168481 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
09bacfc1c6
commit
6bb779a3f5
1 changed files with 11 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.68 -->
|
||||
<refentry id="function.localeconv">
|
||||
<refnamediv>
|
||||
|
@ -139,22 +139,22 @@
|
|||
</para>
|
||||
<para>
|
||||
The grouping fields contain arrays that define the way numbers should be
|
||||
grouped. For example, the monetary grouping field for the nl_NL locale in
|
||||
UTF-8 mode with the euro sign, would contain a 2 item array with the
|
||||
values 3 and 3. The higher the index in the array, the farther left the
|
||||
grouping is. If an array element is equal to CHAR_MAX, no further
|
||||
grouping is done. If an array element is equal to 0, the previous element
|
||||
should be used.
|
||||
grouped. For example, the monetary grouping field for the nl_NL locale (in
|
||||
UTF-8 mode with the euro sign), would contain a 2 item array with the
|
||||
values 3 and 3. The higher the index in the array, the farther left the
|
||||
grouping is. If an array element is equal to <constant>CHAR_MAX</constant>,
|
||||
no further grouping is done. If an array element is equal to 0, the previous
|
||||
element should be used.
|
||||
</para>
|
||||
<example>
|
||||
<title><function>localeconv</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
setlocale(LC_ALL, 'nl_NL.UTF-8@euro');
|
||||
$locale_info = localeconv();
|
||||
|
||||
print_r($locale_info);
|
||||
if (false !== setlocale(LC_ALL, 'nl_NL.UTF-8@euro')) {
|
||||
$locale_info = localeconv();
|
||||
print_r($locale_info);
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
@ -193,9 +193,6 @@ Array
|
|||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
<para>
|
||||
The constant CHAR_MAX is also defined for the use mentioned above.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>setlocale</function>.
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue