问题
I have some text:
text,text • text.text • text:text
I need
array('text,text','text.text','text:text);
How do I explode •? WORK!!! need:
$txt = html_entity_decode($txt);
$textArray = explode("•",$txt);
print_r($textArray);
回答1:
Try that:
$str = "text,text • text.text • text:text";
$new_arr = explode ('•', $str);
来源:https://stackoverflow.com/questions/33959444/php-how-to-explode