Hi,
Say I were to get an array from a database:
$sql = mysql_query("SELECT * FROM table");
while($r = mysql_fetch_array($sql)) {
$arr[] = ('Name => $r["Name"]', 'Lname => $r["LName"]');
}
Ignore bad syntax in the above, I know....
Anyway, how would I be able to sort the array by Lname for example? I know I could just do ORBER BY LName however in my real situation i need to sort an array .
Thanks