How to detect user’s country/language – the simple way
To detect user’s language we need a table of language codes and the $_SERVER['HTTP_ACCEPT_LANGUAGE'] variable.
a few words about web development
To detect user’s language we need a table of language codes and the $_SERVER['HTTP_ACCEPT_LANGUAGE'] variable.