When I use Firefox to test this block of code, I get en-us,en;
en-us,en;
I just use explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']) to get the first possible language that my client might use. It works fine on chrome and IE 10. Not sure if it would be wrong on other browsers.
explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE'])