Menu
Hi,
I am currently obtaining the browsers language type using the following: –
[CODE]
// Get the users language
$users_lang = explode(“,”, getenv(“HTTP_ACCEPT_LANGUAGE”));
$users_lang = strtolower($users_lang[0]);
if(empty($users_lang)) {
$users_lang = “Unknown”;
}
There is not a problem with the code perse, the problem i have is that it is coming up with 60% of them as unknown.
Is there a more efficient way to do it?
Thanks
k0r54