This method only returns tags that conforms ISO 639 for language codes
and ISO 3166 for region codes. HTTP spec (RFC 2616) defines both of these
parts as 1*8ALPHA, but this method ignores tags with longer (or shorter)
codes than defined in ISO mentioned above.
There can be an asterisk "*" in the returned array, which means that
any language is acceptable.
Warning: This method expects that locale tags are placed in descending
order by quality in the $header string. I'm not sure if it's always true
with the web browsers.
public static parseAcceptLanguageHeader ( string $acceptLanguageHeader ) : mixed | ||
$acceptLanguageHeader | string | |
return | mixed | The array of locale identifiers or FALSE |