function includeGbk($str)
{
$pattern = '/[^\x00-\x80]/';
if(preg_match($pattern, $str))
{
return true; //包含中文
}
return false;
}
转载于:https://www.cnblogs.com/linlz/archive/2012/10/16/2726442.html
function includeGbk($str)
{
$pattern = '/[^\x00-\x80]/';
if(preg_match($pattern, $str))
{
return true; //包含中文
}
return false;
}
转载于:https://www.cnblogs.com/linlz/archive/2012/10/16/2726442.html