PHP » GoLang |
login |
register |
about
|
Locale::lookuplocale_lookup(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Locale::lookup -- locale_lookup — Searches 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 |
more
Recently updated
more
Most requested
more
Last requests
|