Sort an array in descending order in PHP - phptpoint

Sort an array in descending order in PHP

PHP Summer Training/Internship with 2 Live Projects in Noida Fee is only 5500/-Click here to Book Your Seat

/ins>

Sort an array in descending order in PHP

Output
Unsorted array is: Array ( [0] => 2 [1] => 4 [2] => 8 [3] => 5 [4] => 1 [5] => 7 [6] => 6 [7] => 9 [8] => 10 [9] => 3 )

Sorted Array is: Array ( [0] => 10 [1] => 9 [2] => 8 [3] => 7 [4] => 6 [5] => 5 [6] => 4 [7] => 3 [8] => 2 [9] => 1 )

Latest Trending Technologies