<?php header("Content-type:text/html;charset=utf-8"); $str = '你好 hello world'; preg_match_all('/[\x{4e00}-\x{9fa5}]+?|[\S]+?/u', $str, $arr); var_dump($arr); ?>