07-15-2008, 02:50 PM
|
#8 (permalink)
|
|
The Acquainted
Join Date: May 2008
Posts: 175
Thanks: 9
|
Hi Benton,
So what I understand is that you will have a key index housing a sub-array.
So what you gave will work perfectly fine.
PHP Code:
for ($i = 0; $i < count($myarray); ++$i) { if (is_array($myarray[$i])) asort($myarray[$i]); }
You do not need to go backwards with this; I thought you actually needed to traverse (crawl down) the array.
__________________
There are No Stupid Questions. But there a LOT of Inquisitive Idiots.
|
|
|