I18Nv2::getInfo()
I18Nv2::getInfo()
-- Get several locale specific information
概要
require_once 'I18Nv2.php'; |
mixed I18Nv2::getInfo ([string $part = NULL])
説明
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.
例 43-1Retrieving 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');
?>
|
|
パラメータ
- string
$part specific part of locale information
返り値
Returns mixed locale specific information or array
all available locale specific information if called without parameter.