【发布时间】:2018-01-29 02:50:03
【问题描述】:
我有这样的数组格式的数据:-
Array
(
[itemId] => Array
(
[0] => 1001
[1] => 1002
)
[itemName] => Array
(
[0] => Sample Item one
[1] => Sample Item two
)
[itemDesc] => Array
(
[0] => Item Specifications
[1] => Item Warranty
)
[itemCode] => Array
(
[0] => GL2113
[1] => SP88293
)
[itemQty] => Array
(
[0] => 1
[1] => 5
)
[itemType] => Array
(
[0] => Electronic
[1] => Computer
)
)
如何将其转换为以下格式:-
array(
[0]=>array(
[itemId] =>1001,
[itemName] =>Sample Item one,
[itemDesc] =>Item Specifications,
[itemCode] =>GL2113,
[itemQty] =>1,
[itemType] =>Electronic
)
[1]=>array(
[itemId] =>1002,
[itemName] =>Sample Item two,
[itemDesc] =>Item Warranty,
[itemCode] =>SP88293,
[itemQty] =>5,
[itemType] =>Computer
)
)
【问题讨论】:
-
请在此处粘贴代码和所有内容,而不是图像。检查你的东西几乎是不可能的