我在这里唯一关心的是尺寸。我需要闯入一个新级别的数组并将其添加进去,将它们分组在一起。
我基本上需要将它们全部分组在自己的数组中,这样我就可以循环它们并执行其他操作。
当前数组:
[0] => Array
(
[name] => random name 2
[sizes] => ["XS","S","M","L","XL","XXL"]
)
[1] => Array
(
[name] => random name 1
[sizes] => One Size
)
[2] => Array
(
[name] => random name 3
[sizes] => ["XS","S","M","L","XL","XXL"]
)
通缉:
[0] => Array
(
[0] => Array
(
[name] => random name 1
[sizes] => One Size
)
)
[1] => Array
(
[0] => Array
(
[name] => random name 2
[sizes] => ["XS","S","M","L","XL","XXL"]
)
[1] => Array
(
[name] => random name 3
[sizes] => ["XS","S","M","L","XL","XXL"]
)
)
ITMISS