31019 - Sorting Arrays in PHP

Опубликовано: 06 Март 2016
на канале: OnTargetHTML5
304
2

In this tutorial we look at the functions in PHP that are associated with sorting indexed and associative arrays. We demonstrate the proper use of the sort() function the rsort () function, asort() function, the arsort() function and the ksort() and the kasort() functions. These functions are all demonstrated and explained in the tutorial. The print_r function is used throughout the demonstration to out our results to the browser window.