我有三個陣列,某種層次的預定義項PHP array_walk多維數組
array("fruits", "yellow", "pineapple");
array("fruits", "yellow", "lemon");
array("fruits", "red", "apple");
和我有有一種層次結構的assoc命令數組:
array('fruits'=>array('red'=>array('tomato')));
我怎麼能推我的三個陣列的條款在我得到的正確位置:
array('fruits'=>array('yellow'=>array('pineapple','lemon'),'red'=>array('tomato','apple')));
我使用array_walk?或者array_walk_recursive? 我應該使用什麼?
最佳,約爾格
謝謝!而已!你讓我今天一整天都感覺很好 :-) – user987875