I have and array $aArg with these values
array ( 0 => 'reviewed_entity', 1 => 'kiosk', )
array ( 0 => 'tripadvisor', 1 => 'tripadvisor2', )
array ( 0 => 'google', 1 => 'google2', )
array ( 0 => 'yahoo', 1 => 'yahoo2', )
I need to make it appear as below.
array ('kiosk' => array ( 'tripadvisor' => 'tripadvisor2','google' => 'google2','yahoo' => 'yahoo2',));
- Please note a few things Kiosk is the value of the [1] of first array. and it's now the parent array'
- Other arrays have values of [0] transpose as key for [1]
- All the arrays have been merged into one.
Thank you guys I have had sleepless nights trying to get final merge result, please share with me the fastest way to get desired results