php 正则获取字符串中的汉字preg_match_all
preg_match_all('/[\x{4e00}-\x{9fff}]+/u', $list[$i]['iparr'], $matches); $list[$i]['iparr'] = join('', $matches[0]);
起点在哪,或许选择不了。重要的是,你追求的终点在哪!
preg_match_all('/[\x{4e00}-\x{9fff}]+/u', $list[$i]['iparr'], $matches); $list[$i]['iparr'] = join('', $matches[0]);