array( array( 'drive'=>array('test1'), 'wheel_drive'=>array('2WD','4WD') ), array( 0=>array( 'drive'=>array('test21','test31'), 'wheel_drive'=>array('2WD','4WD') ), 1=>array( 'drive'=>array('test32'), 'wheel_drive' => array('4WD') ) ), array( 'drive' => array('test4'), 'wheel_drive'=> array('2WD','4WD') ) ); Output: array( array('drive'=>array('test1'),'wheel_drive'=>array('2WD','4WD')), array('drive'=>array('test21','test31'),'wheel_drive'=>array('2WD','4WD')), array('drive'=> array('test32'),'wheel_drive' => array('4WD')), array('drive' => array('test4'),'wheel_drive'=> array('2WD','4WD')) ); How can…