We Recommend

Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
Wicked Cool PHP contains a wide variety of scripts to process credit cards, check the validity of email addresses, template HTML, and serve dynamic images and text.


Posted By

damarev on 06/06/07


Tagged


Versions (?)


Who likes this?

5 people have marked this snippet as a favorite

luman
pablodgavilan
inamorix
IanLewis
vali29


get the browser language


Published in: PHP 


  1. $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);

Report this snippet 

You need to login to post a comment.