want to join us? register, it's easy | help
category icon

How to Sort an Array in PHP

in PHP added by goodphptutorials, on 2/10/2006 beginner tutorials

It is often necessary to arrange the elements in an array in numerical order from highest to lowest values (descending order) or vice versa (ascending order). If the array contains string values, alphabetical order may be needed. Sorting a one-dimensional arrays is quite easy.

comment save report


(an email address)


(your name)