Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
$string = "あ,S"; 爆炸(“,”,$字符串);这段代码可以工作,但是当我将 string = "あ、s" "," 更改为日文字符 "、" 时,它不起作用。我该如何解决这个问题。请帮我!非常感谢!注意:$string Im 从数据库中获取(ASCII)
对多字节字符使用 mb_split 函数。
数组 mb_split ( 字符串 $pattern , 字符串 $string [, int $limit = -1 ] )
http://php.net/manual/en/function.mb-split.php