PHP. How to explode •

二次信任 提交于 2019-12-04 07:05:50

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!