I have an array like this.
array('root'=> array(
'auth'=>'stringKey',
'version'=>'4057',
'...'=>'...'
)
)
Now I want to remove the outer array and root key and so I get array like below. i.e reduce it to one dimensional array
array(
'auth'=>'stringKey',
'version'=>'4057',
'...'=>'...'
)
$myArray = $myArray['root'];$myArray['root']... but I doubt if any other approach will be faster or more memory efficient