Answer the question
In order to leave comments, you need to log in
How to convert a multi-dimensional array to a one-dimensional array by a specific key?
The problem is probably solved easily, but I did not find the answer. Perhaps I'm asking the wrong question. From such a multidimensional array:
Array
(
[0] => Array
(
[id] => 596
[category] => 84
[main] => 1
)
[1] => Array
(
[id] => 596
[category] => 85
[main] => 0
)
)
Array
(
[0] => 84
[1] => 85
)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question