PHP sort() function sorts an array. Elements will be arranged from lowest to highest when this function has completed. It will returns TRUE on success or FALSE on failure.
sort ( array &$array [, int $sort_flags = SORT_REGULAR ] ) : bool
For more information visit: https://www.php.net/manual/en/function.sort.php
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.