Hello again
It’s another one of these days where I can’t get my head around php (and the fact that I code jscript at the same time just confuses me)
I’m trying to sort an array containing arrays by using elements of the arrays - how should I do that ?
//here's what my array could look like
//I would for instance like to order my array (the top elements - fruitnames)
//by their color or the number or the type of food (fruit/veggie)
Array
(
[apple] => Array
(
[0] => red
[1] => Fruit
[2] => 2
)
[salad] => Array
(
[0] => green
[1] => vegetable
[2] => 45
)
[carrot] => Array
(
[0] => orange
[1] => vegetable
[2] => 22
)
)