programming-examples/php/Basics/Program to sort elements in an array in descending order..php

7 lines
74 B
PHP
Raw Permalink Normal View History

2019-11-18 14:44:36 +01:00
<?php
$arr = array(10,5,8,3,45);
rsort($arr);
print_r($arr);
?>