This question already has an answer here:
- How can I sort arrays and data in PHP? 10 answers
I have an array that is created like this:
$i = 0;
$files = array();
while ($file = mysql_fetch_array($query_files)) {
$files[$i] = array();
$files[$i] = $file;
$i++;
}
And I need to be able to sort the $files array based on each $file['name'] aka $files[$i]['name'].
How do I do this? Thanks!
</div>