note 103174 added to function.array-reverse
| From: | Anonymous at osu1 dot php dot net | Date: | Tue, 29 Mar 2011 21:42:43 +0000 |
| Subject: | note 103174 added to function.array-reverse | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-178330@lists.php.net to get a copy of this message | ||
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;
}
?>
----
Server IP: 69.147.83.197
Probable Submitter: 88.167.37.233
----
Manual Page -- http://www.php.net/manual/en/function.array-reverse.php
Edit -- https://master.php.net/note/edit/103174
Del: integrated -- https://master.php.net/note/delete/103174/integrated
Del: useless -- https://master.php.net/note/delete/103174/useless
Del: bad code -- https://master.php.net/note/delete/103174/bad+code
Del: spam -- https://master.php.net/note/delete/103174/spam
Del: non-english -- https://master.php.net/note/delete/103174/non-english
Del: in docs -- https://master.php.net/note/delete/103174/in+docs
Del: other reasons-- https://master.php.net/note/delete/103174
Reject -- https://master.php.net/note/reject/103174
Search -- https://master.php.net/manage/user-notes.php