PHP » GoLang |
login |
register |
about
|
GoLang Locale::filterMatches
request it (371)
GoLang replacement for PHP's Locale::filterMatches
[edit | history]
Locale::filterMatcheslocale_filter_matches(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Locale::filterMatches -- locale_filter_matches — Checks if a language tag filter matches with locale DescriptionObject oriented style
public
static
bool
Locale::filterMatches
( string
$langtag
, string $locale
[, bool $canonicalize = FALSE
] )Procedural style
bool
locale_filter_matches
( string
$langtag
, string $locale
[, bool $canonicalize = FALSE
] )Checks if a $langtag filter matches with $locale according to RFC 4647's basic filtering algorithm Parameters
Return Values
ExamplesExample #1 locale_filter_matches() example
<?php Example #2 OO example
<?php The above example will output: Does not match; Matches |
more
Recently updated
more
Most requested
|