rsort

It  sorts the array in reverse order

Example

<?php
echo “<pre>”;
$lan = array(“PHP”,”JSP”,”ASP”);
rsort($lan);
print_r($lan);
?>

Output

Array
(
[0] => PHP
[1] => JSP
[2] => ASP
)

Share