note 87885 added to function.usort

From: Date: Mon, 29 Dec 2008 01:40:05 +0000
Subject: note 87885 added to function.usort
Groups: php.notes 
Request: Send a blank email to php-notes+get-148626@lists.php.net to get a copy of this message
/*--------------------------------------------------------- * my own home made easy object sort, which * i cannot find anywhere on the net * at all, tut. i can find only complicated ones, * which brings me a headache. * * You can enhance it to return all sorts of error * conditions if you wish, * i need nothing but a false return upon failure to sort, * so that is the only error i have here * * Example usage: * * INPUT - $objects_array // an array of objects for sorting * PARAMETERS - property // the property of the object to be sorted * OUTPUT - $engine // an engine object created by new, // with your arrays of objects sorted according to your // selected property //( the sorting is done upon sort object creation ) * * Code Examples * * $engine = new objSorter($objects_array); // sorts on FIRST property - default * $engine = new objSorter($objects_array,'property'); // sort on ANY specific property *--------------------------------------------------------*/ ---- Server IP: 124.217.231.13 Probable Submitter: 60.50.192.162 ---- Manual Page -- http://www.php.net/manual/en/function.usort.php Edit -- https://master.php.net/note/edit/87885 Del: integrated -- https://master.php.net/note/delete/87885/integrated Del: useless -- https://master.php.net/note/delete/87885/useless Del: bad code -- https://master.php.net/note/delete/87885/bad+code Del: spam -- https://master.php.net/note/delete/87885/spam Del: non-english -- https://master.php.net/note/delete/87885/non-english Del: in docs -- https://master.php.net/note/delete/87885/in+docs Del: other reasons-- https://master.php.net/note/delete/87885 Reject -- https://master.php.net/note/reject/87885 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#148626) next »