how do I sort a multiple assoc array?
| From: | Craig Simons | Date: | Sat, 02 Sep 2000 21:37:22 +0000 |
| Subject: | how do I sort a multiple assoc array? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-14950@lists.php.net to get a copy of this message | ||
I have the following array structure: $stats[$i]["some_string"]
$i is around is read from a file and numbers at about 150 right right now. "Some string" includes user_id, ip_addr, date and a few others, all containing the pertinent data. I want to sort this array according to the user_id. I've seen examples using the various sort() functions using associative arrays, but none with multiple assoc arrays. Eeeek. I don't know what to do. Any input?
- Craig Simons