Language specific response

Knowing the languages selected in the browser of our visitors may be a very important data we may used to redirect the user to a specific page in the corresponding language, or to display specific information directed to the user (as for example the most suitable ad).

The basic command we will use to know the languages selected in the browser is this one:

$_SERVER["HTTP_ACCEPT_LANGUAGE"]


In the table bellow we have used an script to identify the languages selected in your browser.  You may get the complete code here.