【发布时间】:2015-08-08 22:11:19
【问题描述】:
我有这个字符串:
text example (some text) (usb, apple (fruit), computer (technology), nature: sky)
我需要带有explode "(" 的var_dump() 输出:
array(3) {
[0]=>
string(34) "text example"
[1]=>
string(12) "some text"
[2]=>
string(12) "usb, apple, computer, nature: sky"
}
【问题讨论】:
-
水果和技术怎么了?
-
@AbraCadaver 我猜他们只是被ᗧ(吃豆人)吃掉了。
-
@Rizier123: 哈哈 :-)
-
@user2337706:你为什么不使用“preg_split”?
-
水果和技术可以留在这里,没那么重要。那么使用爆炸没有办法排除子分隔符?只有“preg_split”?