I'm having problem with my array basicly this is what i have:
- $test =
- array(
- "image" => array(
- "name" => array(
- "name.jpg",
- "name2.jpg",
- "name3.jpg"
- ),
- "type" => array(
- "image/jpeg",
- "image/jpeg",
- "image/jpeg",
- ),
- "size" => array(
- 118108,
- 589788,
- 1387074
- )
- )
- )
And this is what i would like to have:
- $test2 =
- array(
- "0" => array(
- "name" => "name.jpg",
- "type" => "image/jpeg",
- "size" => 118108
- ),
- "1" => array(
- "name" => "name2.jpg",
- "type" => "image/jpeg",
- "size" => 589788
- ),
- "2" => array(
- "name" => "name3.jpg",
- "type" => "image/jpeg",
- "size" => 1387074
- )
-
- )
So i need some kind of script which would redo that first array structure in to the second one