1
我有這樣PHP數組:改變鍵數目與字
<?php
Array (
[0] => Array (
['a'] =>'David'
['b'] => 'Paul'
[0] => 'Tom'
)
[1] => Array (
['a'] =>'Andrea'
['b'] => 'Chris'
[0] => 'Mark'
)
)
?>
我必須改變與一個「c」的「0」鍵的陣列。我該怎麼做 ?
搜索首先是一個好習慣。 http://stackoverflow.com/questions/13233405/change-key-in-associative-array-in-php –
可能的重複[在PHP中,你如何改變數組元素的關鍵?](http:// stackoverflow.com/questions/240660/in-php-how-do-you-change-the-key-of-an-array-element) – Havelock