- sort()
- rsort()
- asort()
- ksort()
- arsort()
- krsort()
- sort() is used for sorting elements of an array in ascending order
- $fruits = array('mango','grapes','apple','pineapple');
- sort($fruits);
- $length= sizeof($fruits);
- For complete explanation through examples, Read full Blog at: Sorting the elements of array
FindNerd is an effective C, Java, Android, Html, iOS, JavaScript, PHP developer forum, to instantly resolve your various language queries.
Apart from this, If you have any html language issue, you can post at HTML questions and answers and get instantly resolved it from highly experienced FindNerd community members.
FindNerd is an effective C, Java, Android, Html, iOS, JavaScript, PHP developer forum, to instantly resolve your various language queries.
Apart from this, If you have any html language issue, you can post at HTML questions and answers and get instantly resolved it from highly experienced FindNerd community members.