Array Sorting
| From: | Steve Buehler | Date: | Wed, 12 Jun 2002 15:55:37 +0000 |
| Subject: | Array Sorting | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-101758@lists.php.net to get a copy of this message | ||
I have looked through php.net and the books that I have and I am confused, so I hope that someone can help me out here. I am trying to sort an array that I have. I use a while statement to fill the array:
$teams[++$i][team_id]=$row->team_id;
$teams[$i][name]=$row1->name;
$teams[$i][team_sea_id]=$row->team_sea_id;
Everything goes in the array as it should, so no problem there. I just want to know how do I sort the array by the "name" column?
Thanks In Advance
Steve