PHP。如何爆炸•;
我有一些文字:PHP。如何爆炸•;,php,explode,Php,Explode,我有一些文字: text,text • text.text • text:text 我需要 array('text,text','text.text','text:text); 我怎么爆炸•? 工作需要: $txt = html_entity_decode($txt); $textArray = explode("•",$txt); print_r($textArray); 试试看: $str = "text,tex
text,text • text.text • text:text
我需要
array('text,text','text.text','text:text);
我怎么爆炸•?
工作需要:
$txt = html_entity_decode($txt);
$textArray = explode("•",$txt);
print_r($textArray);
试试看:
$str = "text,text • text.text • text:text";
$new_arr = explode ('•', $str);
怎么了,好先生?这只是一个黑暗的尝试,但最有可能的问题是编码问题。但是,“•”在
$txt
中编码,在源代码的字符串literal中,“•”
不同。使用echo bin2hex(“•”),bin2hex($txt)
找出区别@Аааааааааааааааааааааа好;数组([0]=>“文本,文本•文本.文本•文本:文本”)