i'm trying to sort the multidimensional array below ($garden).
i just want the 'numbers' on the left (5, 2, 4) in the correct (and if possible reverse) order. i tryed a few things but nothing really worked. (i'm not very experienced with arrays ...)
$garden = array(
'5' => array('bla' => 'flowers', 'bla bla' => 'more flowers'),
'2' => array('bla' => 'trees', 'bla bla' => 'more trees'),
'4' => array('bla' => 'bushes', 'bla bla' => 'more bushes')
);
result (correct order) should look like this:
$garden = array(
'2' => array('bla' => 'trees', 'bla bla' => 'more trees'),
'4' => array('bla' => 'bushes', 'bla bla' => 'more bushes'),
'5' => array('bla' => 'flowers', 'bla bla' => 'more flowers')
);