note 103174 deleted from function.array-reverse by danbrown

From: Date: Tue, 29 Mar 2011 22:07:05 +0000
Subject: note 103174 deleted from function.array-reverse by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-178332@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- for jferchaud : return an array in reverse order if you use the array_reverse function instead of filling the array : <?php function array_reverse_order($array){ $array_key = array_keys($array); $array_value = array_values($array); $array_return = array(); for($i=1, $size_of_array=sizeof($array_key);$i<=$size_of_array;$i++){ $array_return[$array_key[$size_of_array-$i]] = array_reverse($array_value[$size_of_array-$i]); } return $array_return; } ?>

« previous php.notes (#178332) next »