07-15-2008, 03:51 AM
|
#2 (permalink)
|
|
The Acquainted
Join Date: May 2008
Posts: 175
Thanks: 9
|
I believe asort is what your looking for.
PHP Code:
$array = array('1' => array('52' => 'Milk Choclate', '221' => 'Vanilla Bean', '212' => 'Banana Cream', '80' => 'Choclate Peanut Butter'));
asort($array['1']); echo print_r($array);
I am not to sure if this is exactly what you are looking for. If you could provide a more accurate example as if I were to build a recursive function for this (multi-dim array);
It would need to start at the deepest array and work back to the beginning (what string value does an array have?) if you see what I mean.
__________________
There are No Stupid Questions. But there a LOT of Inquisitive Idiots.
|
|
|