PHP Array Sorting Tricks

Sorting arrays is easy using PHP, thanks to the sort(), ksort(), and related functions. You can sort a one-dimensional array by key, by value, in reverse order, etc. But these functions will not work on multidimensional arrays (not as you’d probably like, at least).
So, many a times beginners end-up creating their own logic to sort multi-dimentional array and waste a lot of time in that. So here is a quick-tip for all.


150 150 Burnignorance | Where Minds Meet And Sparks Fly!