note 36181 rejected from function.usort by pollita

From: Date: Mon, 29 Sep 2003 21:09:43 +0000
Subject: note 36181 rejected from function.usort by pollita
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57295@lists.php.net to get a copy of this message
Note Submitter: ahkuh@yahoo.com ---- 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?

« previous php.notes (#57295) next »