|
Locale::acceptFromHttplocale_accept_from_httpTries to find out best available locale based on HTTP "Accept-Language" header BeschreibungObjektorientierter Stil
public
static
string
Locale::acceptFromHttp
( string
$header
)Prozeduraler Stil
string
locale_accept_from_http
( string
$header
)Tries to find locale that can satisfy the language list that is requested by the HTTP "Accept-Language" header. Parameter-Liste
RückgabewerteThe corresponding locale identifier. BeispieleBeispiel #1 locale_accept_from_http example
<?phpBeispiel #2 OO example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: en_US Siehe auch
|