【发布时间】:2015-05-19 18:15:03
【问题描述】:
我有以下字符串:
$string = "This is my string, that I would like to explode. But not\, this last part";
我想explode(',', $string)这个字符串,但是当逗号前面有\时explode()不应该爆炸。
想要的结果:
array(2) {
[0] => This is my string
[1] => that I would like to explode. But not , this last part
}
【问题讨论】: