可能重複:
In PHP, how do you change the key of an array element?如何更改此數組的數組鍵?
此數組
Array
(
[0] => Array
(
[id] => 1
[due_date] => 2011-09-23
[due_amount] => 10600.00
)
[1] => Array
(
[id] => 2
[due_date] => 2011-10-23
[due_amount] => 10600.00
)
[2] => Array
(
[id] => 3
[due_date] => 2011-11-23
[due_amount] => 10600.00
)
)
如何改變ID到此數組中的U_ID?
問候
你到目前爲止嘗試過什麼,所以它節省了我們的時間來嘗試你已經嘗試過的東西? – RSM