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
I'm shuffeling through numbers range(1, 10). Can I eval resulting random numbers and convert to appropriate text? 1 = username1, 2 = username2...etc?I want to invert my array, can I do this?
How can I sort a multi-dimensional array?
How do I find the size of an array?
what is the return value of array_unique()?
