-4
我需要重新創建一個數組的數組中結合相同的密鑰和puting 在他們的價值觀..ok其並不清楚,這裏是一個形而下爲例數組:創建相同的密鑰值不同
我有這樣的陣列1波紋管:
Array1
(
[0] => Array
(
[profile_field_id] => 214
[value] => 1
[order] => 1
)
[1] => Array
(
[profile_field_id] => 214
[value] => 2
[order] => 2
)
[2] => Array
(
[profile_field_id] => 214
[value] => 4
[order] => 3
)
[3] => Array
(
[profile_field_id] => 214
[value] => 8
[order] => 4
)
[4] => Array
(
[profile_field_id] => 215
[value] => 1
[order] => 1
)
[5] => Array
(
[profile_field_id] => 215
[value] => 2
[order] => 2
)
,我需要建立在array1數組,輸出應該是:
Array
(
[214] => Array
(
[value] => Array
(
[1]
[2]
[4]
[8]
)
)
[215] => Array
(
[value] => Array
(
[1]
[2]
)
)
感謝您的幫助, 個傑斯
你的問題沒有任何意義?你在找什麼? – Jack
我很抱歉我的英語..我需要創建第二個陣列,第一個 – albator
有人寫他的代碼。 –