I have trouble understanding arrays and I was wondering if someone could help me reformat an existing array in php.
This is the existing array:
Array
(
[item] => Array
(
[0] => item listing 1
[1] => item listing 2
)
[description] => Array
(
[0] => item testing description
[1] => item testing description
)
[rate] => Array
(
[0] => 1.00
[1] => 2.00
)
[itemid] => Array
(
[0] => 1
[1] => 2
)
)
I want it to look like this:
Array
(
[0] => Array
(
[item] => item listing 1
[description] => item testing description
[rate] => 1.00
[itemid] => 1
)
[1] => Array
(
[item] => item listing 2
[description] => item testing description
[rate] => 2.00
[itemid] => 2
)