How do I reverse sort the members of an array?
Again this takes the name of the array as its parameter and here's a little example for you:
<?php
$myworld = array("it","better","make","you");
rsort($myworld);
print_r($myworld);
?>
printing to the screen:
Array
(
[0] => you
[1] => make
[2] => it
[3] => better
)
Comment on this Question and Answer >>>
ASK A QUESTION
More arrays PHP Questions
How do I remove and view the last element of an array?I have the following list : Tom T1 Tom T2 Bill T1 Bill T2 Jack T1 Jack T2 I need it converted into : Tom T1,T2 Bill T1,T2 Jack T1,T2
How do I reverse the order of the elements in an array?
I have an array of numbers and many repeat, how to list all items in order of maximum occurence?
in .$array->description doesn't work "description" is suppose to stay black and turns colored and is ignored Why?
