PHP. How to explode •

前端 未结 1 747
闹比i
闹比i 2021-01-29 12:12

I have some text:

text,text • text.text • text:text

I need

array(\'text,text\',\'text.text\',\'text:text);

H

相关标签:
1条回答
  • 2021-01-29 12:35

    Try that:

    $str = "text,text • text.text • text:text";
    $new_arr = explode ('•', $str);
    
    0 讨论(0)
提交回复
热议问题