Loading Image

Almost there...

Loading Image

Loading...

Get Browser Language

This is a simple PHP script that lets you get the current users browser language.
24 March 2017 - 10:00
Downloads: 247
Category: PHP
Get Browser Language
Overview

This is a simple PHP script that lets you get the current users browser language.

PHP Code:
$lang_array = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
echo $language = $lang_array[0];