note 9863 added to krsort

From: Date: Tue, 28 Nov 2000 17:33:54 +0000
Subject: note 9863 added to krsort
Groups: php.notes 
Request: Send a blank email to php-notes+get-8193@lists.php.net to get a copy of this message
If you want to emulate the krsort function for an older version of php, you can use this piece of code: function KeyComp($a, $b) { return -(strcmp($a,$b)); } function krsort($MyArray) { uksort($MyArray, "KeyComp"); } Maybe obvious and useless, but who knows... http://www.php.net/manual/function.krsort.php

« previous php.notes (#8193) next »