Posts tagged array

Sorting a multidimensional array with array_multisort

We first need the array we want to sort (here called arrayToSort). Secondly we need a second array containing the values we want to sort. In this case our names. I called the array arrayWithNamesToSort.

Read more ...