php man page for numfmt_get_locale

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 style

SYNOPSIS
public string NumberFormatter::getLocale ([int $type])
DESCRIPTION
Procedural style string numfmt_get_locale (NumberFormatter $fmt, [int $type]) Get formatter locale name.
PARAMETERS
o $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 VALUES
The locale name used to create the formatter.
EXAMPLES
Example #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: fr
SEE ALSO
numfmt_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