I'm trying to sort by using one of the values that's inside an array thats inside the first array. Here's what the array would look like.
$array[0]['ex1'] = 'foo';
$array[0]['ex2'] = 'bar';
$array[0]['ex3'] = 'fum';
$array[1]['ex1'] = 'fred';
$array[1]['ex2'] = 'jim';
$array[1]['ex3'] = 'fred';
$array[2]['ex1'] = 'pippo';
$array[2]['ex2'] = 'pluto';
$array[2]['ex3'] = 'paperino';
Now, after the array is populated (like above) I want to sort the entire $array by $array[]['ex1']. I've searched the forum for this but didn't fine anything exactly like this, similar but not exact. Any help would be great, thanks!