PHP。如何爆炸•

时间:2015-11-27 14:25:09

标签: 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);

1 个答案:

答案 0 :(得分:1)

试试:

$str = "text,text • text.text • text:text";
$new_arr = explode ('•', $str);
相关问题