qazs
12-23-2006, 04:55 PM
Hi,
I have this array:
array('a'=>array('a1','a2'), 'a1'=>array('a1.1','a1.2','a1.3'), 'a1.2'=>array('a1.2.1'));
and I wish to do a replacement of values so it becomes this:
array('a'=>array(array('a1.1',array('a1.2.1'),'a1.3'),'a2'));
Have been trying and trying but I still can't figure out....
Any help is greatly appreciated.
I have this array:
array('a'=>array('a1','a2'), 'a1'=>array('a1.1','a1.2','a1.3'), 'a1.2'=>array('a1.2.1'));
and I wish to do a replacement of values so it becomes this:
array('a'=>array(array('a1.1',array('a1.2.1'),'a1.3'),'a2'));
Have been trying and trying but I still can't figure out....
Any help is greatly appreciated.