note 36181 added to function.usort
| From: | ahkuh at yahoo dot com | Date: | Mon, 29 Sep 2003 21:03:34 +0000 |
| Subject: | note 36181 added to function.usort | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-57292@lists.php.net to get a copy of this message | ||
Hi guys,
I have an array of student section objects which contains course name.
I would like to use usort to order this object array based on predefined course name order.
For instance, when you do student section object->courseName, you get a string value of a course
name(i.e. "Math" or "Reading").
I would like to order this student section object array by its course name.
How can I use usort to solve this problem?
----
Manual Page -- http://www.php.net/manual/en/function.usort.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+36181
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+36181&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+36181&report=yes