Getting browser language settings with PHP
Publié le September 13th, 2005 by Jérémie Ducastel
So, you run a multilingual web site with PHP and you want to serve the reader’s choice language if available. No problem, HTTP carries user’s browser language settings within Accept-Language instruction, you just have to parse it. Here is a sample function.