我有一个名为newValue
的数组。当我打印它时,它打印为
Array ( [ticket_name] => Array ( [0] => Mango [1] => Apple )
[ticket_quantity] => Array ( [0] => 100 [1] => 11 )
[ticket_price] => Array ( [0] => 30 [1] => 30 ) )
我的问题是。如何将此数组更改为此类
Array
(
[0] => Array
(
[ticket_name] => Mango
[ticket_quantity] => 100
[ticket_price] => 30
)
[1] => Array
(
[ticket_name] => Apple
[ticket_quantity] => 11
[ticket_price] => 30
)
)