note 90892 modified in function.array-reverse by danbrown

From: Date: Thu, 14 May 2009 21:47:12 +0000
Subject: note 90892 modified in function.array-reverse by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-154617@lists.php.net to get a copy of this message
<?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. --was-- 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. http://php.net/manual/en/function.array-reverse.php

« previous php.notes (#154617) next »