Re: usort for sorting an array of objects
| From: | Shiplu | Date: | Wed, 10 Dec 2008 18:04:54 +0000 |
| Subject: | Re: usort for sorting an array of objects | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-284428@lists.php.net to get a copy of this message | ||
may be you can design a class.
interface ISortable{
public sort();
public compare($a,$b);
}
SortableList implements ISortable {
}
--
Blog: http://talk.cmyweb.net/
Follow me: http://twitter.com/shiplu