【发布时间】:2009-09-21 04:03:49
【问题描述】:
试试这个:
$pattern = '/[\x{ff0c},]/u';
//$string = "something here ; and there, oh,that's all!";
$string = 'hei,nihao,a ';
echo '<pre>', print_r( preg_split( $pattern, $string ), 1 ), '</pre>';
exit();
输出:
<pre>Array
(
[0] => hei,nihao,a
)
</pre>
【问题讨论】:
-
您不是只处理您提出的上一个问题,而是开始另一个更像是对某人答案的评论? stackoverflow.com/questions/1452777/…
-
哦,利弊总是有的。我敢肯定有人很高兴我这样做了。但显然有人不是。我该怎么办?我应该去哪里?