PHP rsort() functionThe PHP rsort( ) function is used to sort an array in reverse order. This function introduced in PHP 4.0. SyntaxParameter
ReturnsThe PHP rsort( ) function returns true on success or false on failure. Example 1Output: Array ( [0] => orange [1] => mango [2] => banana ) Example 2Output: Array ( [0] => 600 [1] => 400 [2] => 220 [3] => 110 [4] => 100 ) Example 3Output: Array ( [0] =>os [1] => java [2] =>dbms [3] => compiler ) Example 4Output: Array ( [0] =>nexon [1] =>hexa [2] =>audi )
Next TopicPHP Array Functions
|