Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php sort reverse


<?php
$fruits = array("lemon", "orange", "banana", "apple");
rsort($fruits);
foreach ($fruits as $key => $val) {
    echo "$key = $val
";
}
?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #sort #reverse
ADD COMMENT
Topic
Name
1+6 =