|
Locale::filterMatcheslocale_filter_matchesChecks 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 See Also
|