您好ü可以給我這一個正確的代碼...陣列爆炸,每行匹配/使用錶行
$split_getCreatedfield = explode(",", "3,1,2");
$fieldsWithValue = explode("~","1->Samuel Pulta~2->21~3->Male~");
for($row=0;$row<count(fieldsWithValue);$row++){
$data = explode("->", $fieldsWithValue[$row]);
}
我希望輸出這樣一個
3 = 3 = Male
2 = 2 = 21
1 = 1 = Samuel Pulta
你的數據是一個非常非常規的格式。這樣做的目的是什麼? – silkfire 2013-02-19 09:19:47
我想$ split_getCreatedfield的數目等於$數據 – 2013-02-19 09:21:17