Answer the question
In order to leave comments, you need to log in
Create an array in descending order?
Hello!
There is a cycle:
foreach ($filtersArray as $filterArray) {
$g = explode(";", $filterArray);
$f[end($g)][reset($g)][] = $g[1];
}
Answer the question
In order to leave comments, you need to log in
I feel that you should look at the bubble method :) Just google it - bubble sort :) Also suitable for multidimensional arrays.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question