explode() on Japanese string

后端 未结 5 1273
情话喂你
情话喂你 2021-01-21 04:41

I have to use the explode() function on Japanese text but it doesn\'t work.

Here is an example of what I have

$string = \'私 は イタリア 人 です\';
$string = expl         


        
5条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-21 05:12

    That is for the simple reason that you do not have a space character here. You have an "IDEOGRAPHIC SPACE" character with the hex code "e3 80 80".

    If you use that as your delimiter, it will work.

提交回复
热议问题