PHP - How to check $ _SERVER ['HTTP_ACCEPT_LANGUAGE']

I have a function that can be used to redirect the user to different web pages based on the settings of $ _SERVER ['HTTP_ACCEPT_LANGUAGE'].

However, I cannot find a method with Firefox to verify this code.

Firefox 3.6.8
Tools/Options/Advanced/Fonts
Fonts for // changed this part
Default Character Encoding // changed this part

However, the return results from $ _SERVER ['HTTP_ACCEPT_LANGUAGE'] always look like this:

HTTP_ACCEPT_LANGUAGE: en-us,en;q=0.5

Does anyone know what I should do?

thank

+3
source share
1 answer

Tools → Options → Content → Languages.
You will see a list of languages. The higher the language on the list, the higher its priority.

+7
source

Source: https://habr.com/ru/post/1762891/


All Articles