//gb2312的话
preg_match_all("/[".chr(0xa1)."-".chr(0xff)."]+/", $str, $chinese);
echo implode("", $chinese[0]);

//utf-8的话
preg_match_all("/[\x{4e00}-\x{9fa5}]+/u", $str, $chinese);

相关文章:

  • 2021-12-22
  • 2021-12-22
  • 2022-12-23
猜你喜欢
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
  • 2021-10-15
相关资源
相似解决方案