时间:2021-07-01 10:21:17 帮助过:20人阅读
http://www.bkjia.com/PHPjc/478128.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/478128.htmlTechArticle直接上代码吧 1?php 2$string=你好啊,hello world; 3preg_match(~[\x{4e00}-\x{9fa5}]+~u, $string, $array); 4 5 6print_r ( $array ); 打印结果: 1Array 2( 3 [0] = 你好啊...