function Get_Lang() {
if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
$lang = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
$lang = substr($lang, 0, 5);
if (preg_match("/zh-cn/i", $lang)) {
$lang = "zh";
} elseif (preg_match("/zh/i", $lang)) {
$lang = "zh";
} else {
$lang = "en";
}
return $lang;
} else {
return "zh";
}
}
$lang = Get_Lang();
if($lang != 'zh'){
//$xxx = english;
}