trait WithAcceptedLanguages

Methods

static array
getAcceptedLanguages()

Gets the languages accepted by the browser, by order of priority.

Details

at line 18
static array getAcceptedLanguages()

Gets the languages accepted by the browser, by order of priority.

This will read the HTTP_ACCEPT_LANGUAGE variable sent by the browser in the HTTP request.

Return Value

array

each item a language accepted by browser