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 = explode(" ", $string);
print_r($string);
That prints
Array ( [0] => 私 は イタリア 人 です )
in place of
Array ( [0] => 私 [1] => は [2] => イタリア [3] => 人 [4] => です )
It seems that explode()
can't recognize the spaces inside that text.
What's the reason? How could I make it work?