I have multidimensional array in php this is array format I need to handle this data in loop and want each array value single time with its index.
Array
(
[name] => Array
(
[0] => third.png
[1] => second.png
[2] => first.png
)
[type] => Array
(
[0] => image/png
[1] => image/png
[2] => image/png
)
[tmp_name] => Array
(
[0] => /opt/lampp/temp/phpOPmQcB
[1] => /opt/lampp/temp/phpk0j1yp
[2] => /opt/lampp/temp/phpS2mhVd
)
[error] => Array
(
[0] => 0
[1] => 0
[2] => 0
)
[size] => Array
(
[0] => 179440
[1] => 102238
[2] => 75915
)
)
I want to handle multidimensional array with new index for example this multidimensional array in core php please help me out
array(
Array
(
[name] => third.png
[type] => image/png
[tmp_name] => /opt/lampp/temp/phpOPmQcB
[error] => 0
[size] => 179440
)
Array
(
[name] => second.png
[type] => image/png
[tmp_name] =>/opt/lampp/temp/phpk0j1yp
[error] => 0
[size] => 102238
)
Array
(
[name] => first.png
[type] => image/png
[tmp_name] => /opt/lampp/temp/phpS2mhVd
[error] => 0
[size] => 75915
)
)