Cita:
Iniciado por AlvaroX no faltaria ademas de sort, la funcion reset() ?
Segun el manual de PHP para
reset(), este lo necesitarias solo en casos de recorrer la matriz con next(), prev(), current(), entre otros, ademas de:
Cita:
Iniciado por PHP manual foreach() Note: When foreach first starts executing, the internal array pointer is automatically reset to the first element of the array. This means that you do not need to call reset() before a foreach loop.
Mas informacion en el manual de PHP para
foreach()