I got three arrays with some kind of hierarchical predefined terms
array("fruits", "yellow", "pineapple");
array("fruits", "yellow", "lemon");
array("fruits", "red", "apple");
And I have an assoc array which has a kind of hierachy:
array('fruits'=>array('red'=>array('tomato')));
How can I push the terms of my three array at the right place that I get:
array('fruits'=>array('yellow'=>array('pineapple','lemon'),'red'=>array('tomato','apple')));
Do I use array_walk? Or array_walk_recursive? What should I use?
Best, Joerg