Sorting array question
Posted: Thu Sep 25, 2008 12:17 pm
Hi, hopefully this question is easy.
I have a big array, made like this:
How would I then sort this $rows array based on, for example:
- Sort by "name" and then by "date"?
Thank you for your time!
I have a big array, made like this:
Code: Select all
$row['name'] = "employee";
$row['etc1'] = "value1";
$row['date'] = "date";
$row['etc2'] = "value3";
$row['etc3'] = "value4";
$rows[] = $row;
// keeping adding new $row to $rows
- Sort by "name" and then by "date"?
Thank you for your time!