note 90892 deleted from function.array-reverse by salathe

From: Date: Fri, 08 Jun 2012 20:07:23 +0000
Subject: note 90892 deleted from function.array-reverse by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-188502@lists.php.net to get a copy of this message
Note Submitter: ulderico at maber dot com dot br ---- <?php function array_reversed($array){ $array = array_reverse($array); ksort($array); return($array); } ?> So you'll have a reversed array.. instead of an array with inverted keys.

« previous php.notes (#188502) next »