What is the best way to split a string into an array of Unicode characters in PHP?

前端 未结 7 2289
野的像风
野的像风 2020-12-05 15:23

In PHP, what is the best way to split a string into an array of Unicode characters? If the input is not necessarily UTF-8?

I want to know whether the set of Unicode

相关标签:
7条回答
  • 2020-12-05 15:48

    Try this:

    preg_match_all('/./u', $text, $array);
    
    0 讨论(0)
提交回复
热议问题