PHP Sort Function


PHP Sort Function

The PHP sort() function is a simple way to sort an array.The sort() function removes old keys and makes new ones. Although the results can be unpredictable in some instances, it can be useful in sorting arryas alphabetically or by date.

To use the sort function,
1) Add the array inside sort().
ie) sort($myarray);