MakeItSimple
Toggle
Home
C language
FAQs
Programs
Python
FAQs
Programs
HTML
Programs
FAQs
CSS
Javascript
FAQs
Programs
PHP
FAQs
Programs
JQuery
FAQs
Programs
AJAX
Bootstrap 3
Website
Programs in PHP
6. Program to sort elements in an array in descending order.
<?php $arr = array(10,5,8,3,45); rsort($arr); print_r($arr); ?>
Output :
Array ( [0] => 45 [1] => 10 [2] => 8 [3] => 5 [4] => 3 )
Father of PHP
Rasmus Lerdorf
Born:
November 22, 1968, Greenland
Makeitsimple.co.in