How do I slice an multidimensional array in php?

Viewed 32

I have an multidimensional array like this, but it's an dynamic array and value may change. Frist array index also may change for different products. Here 'color', 'size' are product attributes.

enter image description here

But I want different array for different attributes,

one is.....

enter image description here

another is....

enter image description here

I think, I have explained what I wanna get .Please help me out from this problem

0 Answers
Related