Home › Forums › Back End › Sorting multidimensional arrays? › Re: Sorting multidimensional arrays?
February 17, 2010 at 12:44 am
#71045
john010117
Member
http://php.net/array_multisort
I believe that’s what you’re looking for.
So, it’ll be something like:
Code:
<?php
foreach ($array as $key => $val)
{
array_multisort($val, SORT_ASC);
} ?>
foreach ($array as $key => $val)
{
array_multisort($val, SORT_ASC);
} ?>
(note: untested)