Query: numfmt_get_locale
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
NUMFMT_GET_LOCALE(3) 1 NUMFMT_GET_LOCALE(3) NumberFormatter::getLocale - Get formatter locale Object oriented styleSYNOPSISpublic string NumberFormatter::getLocale ([int $type])DESCRIPTIONProcedural style string numfmt_get_locale (NumberFormatter $fmt, [int $type]) Get formatter locale name.PARAMETERSo $fmt -NumberFormatter object. o $type - You can choose between valid and actual locale ( Locale::VALID_LOCALE, Locale::ACTUAL_LOCALE, respectively). The default is the actual locale.RETURN VALUESThe locale name used to create the formatter.EXAMPLESExample #1 numfmt_get_locale(3) example <?php $req = 'fr_FR_PARIS'; $fmt = numfmt_create( $req, NumberFormatter::DECIMAL); $res_val = numfmt_get_locale( $fmt, Locale::VALID_LOCALE ); $res_act = numfmt_get_locale( $fmt, Locale::ACTUAL_LOCALE ); printf( "Requested locale name: %s Valid locale name: %s Actual locale name: %s ", $req, $res_val, $res_act ); ?> The above example will output: Requested locale name: fr_FR_PARIS Valid locale name: fr_FR Actual locale name: frSEE ALSOnumfmt_create(3), numfmt_get_error_code(3). PHP Documentation Group NUMFMT_GET_LOCALE(3)
Related Man Pages |
---|
numfmt_get_text_attribute(3) - php |
datefmt_get_locale(3) - php |
numfmt_format(3) - php |
numfmt_get_error_code(3) - php |
numfmt_set_pattern(3) - php |
Similar Topics in the Unix Linux Community |
---|
Locale settings and awk |
Locale woes |