I18Nv2::getInfo
Synopsis
mixed I18Nv2::getInfo (
string $part
= null
)
Description
Get several locale specific information like thousands separator. The provided information debends on the local libc implementation and thus is not always reliable - especially on Microsoft Windows.
Retrieving specific locale information:
<?php
1 require_once 'I18Nv2.php';
2 $locale = I18Nv2::setLocale('en_US');
3 $thsep = I18Nv2::getInfo('thousands_separator');
4 $point = I18Nv2::getInfo('decimal_point');
?>
Parameter
-
string
$part
-
specific part of locale information
Return value
Returns mixed locale specific information or array all available locale specific information if called without parameter.
Note
This function should be called statically.
See
See also I18Nv2::setLocale(), PHPs localeconv().