|
Locale::filterMatcheslocale_filter_matchesChecks if a language tag filter matches with locale BeschreibungObjektorientierter Stil
public
static
bool
Locale::filterMatches
( string
$langtag
, string $locale
[, bool $canonicalize = false
] )Prozeduraler Stil
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 Parameter-Liste
Rückgabewerte
BeispieleBeispiel #1 locale_filter_matches example
<?phpBeispiel #2 OO example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: Does not match; Matches Siehe auch
|