PHP – natsort() Function
The PHP natsort() function sorts an array by using a “natural order” (2 is less than the number 10) algorithm. This function is case-sensitive.
The PHP natsort() function sorts an array by using a “natural order” (2 is less than the number 10) algorithm. This function is case-sensitive.
The PHP next() function moves the internal pointer to, and outputs, the next element in the array.
The PHP pos() function returns the value of the current element (every array has an internal pointer to the “current” element) in an array.
The PHP prev() function moves the internal pointer to, and outputs, the previous element in the array.
The PHP range() function creates an array containing a range of elements from low to high (or high to low if low is set higher than high).
The PHP reset() function moves the internal pointer to the first element of the array.
The PHP shuffle() function randomizes the order of the elements in the array and assigns new keys. Existing keys are removed.
The PHP uasort() function sorts an array by values using a user-defined comparison function while keeping the index association.
The PHP uksort() function sorts an array by keys using a user-defined comparison function while keeping the index association.
The PHP usort() function sorts an array by values using a user-defined comparison function.