View Single Post
Old 07-15-2008, 02:50 PM   #8 (permalink)
drewbee
The Acquainted
 
drewbee's Avatar
 
Join Date: May 2008
Posts: 175
Thanks: 9
drewbee is on a distinguished road
Default

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.
Send a message via AIM to drewbee
drewbee is offline  
Reply With Quote