|
Locale::lookuplocale_lookupSearches the language tag list for the best match to the language DescriptionObject oriented style
public
static
string
Locale::lookup
( array
$langtag
, string $locale
[, bool $canonicalize = false
[, string $default
]] )Procedural style
string
locale_lookup
( array
$langtag
, string $locale
[, bool $canonicalize = false
[, string $default
]] )
Searches the items in Parameters
Return ValuesThe closest matching language tag or default value. ExamplesExample #1 locale_lookup example
<?php Example #2 OO example
<?php The above example will output: de_de_1996 See Also
|