我有一個包含字符和希望做下一個MySQL數據庫之一的字符串:PHP字符串排序
$string = "actor1 as aaa, actor2 as bbb, actor3 as ccc";
for (do a loop for 0 to length of the $string) {
echo actor1
echo aaa
}
所以循環進入並打印出每個時間:
actor1
aaa
actor2
bbb
actor3
ccc
如何做到這一點在PHP中?
您最好使用[爆炸](http://php.net/manual/en/function.explode.php)。 – F0G