usort « Data Structure « PHP






1.usort() sorts an array based on your own predefined criteria.
2.Sorting an Array Using Comparison Functions