I want to know the php way of converting two dimensional array structure to the array of arrays. See the more specific example below:
I have data structure like this:
$_FILES["file"]["name"] = "aaaa.png";
$_FILES["file"]["type"] = "image/png";
$_FILES["file"]["tmp_name"] = "/tmp/phpQklCB7";
$_FILES["file"]["error"] = "0";
$_FILES["file"]["size"] = "37507";
And I need it to be restructured to this data structure:
Array (
[name] => Array ( [0] => aaaa.png )
[type] => Array ( [0] => image/png )
[tmp_name] => Array ( [0] => /tmp/phpIERHxT )
[error] => Array ( [0] => 0 )
[size] => Array ( [0] => 37507 )
)