php man page for msgfmt_get_locale

Query: msgfmt_get_locale

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

MSGFMT_GET_LOCALE(3)							 1						      MSGFMT_GET_LOCALE(3)

MessageFormatter::getLocale - Get the locale for which the formatter was created.

	Object oriented style

SYNOPSIS
public string MessageFormatter::getLocale (void )
DESCRIPTION
Procedural style string msgfmt_get_locale (NumberFormatter $formatter) Get the locale for which the formatter was created.
PARAMETERS
o $formatter - The formatter resource
RETURN VALUES
The locale name
EXAMPLES
Example #1 msgfmt_get_locale(3) example <?php $fmt = msgfmt_create('en_US', "Number {0,number}"); echo msgfmt_get_locale($fmt); ?> Example #2 OO example <?php $fmt = new MessageFormatter('en_US', "Number {0,number}"); echo $fmt->getLocale(); ?> The above example will output: en_US
SEE ALSO
msgfmt_create(3). PHP Documentation Group MSGFMT_GET_LOCALE(3)
Related Man Pages
datefmt_get_calendar(3) - php
msgfmt_get_error_message(3) - php
numfmt_get_locale(3) - php
datefmt_get_timetype(3) - php
msgfmt_format(3) - php
Similar Topics in the Unix Linux Community
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch