I try change the date format from dd/mm/yyyy to yyyy-mm-dd but still doesn't work
Here is my code:
$arraydate = array(array(name=>'name1',date =>'1977-03-01'), array (name=>'name2',date =>'1976-01-01'), array (name=>'name3',date =>'1980-01-01'), array (name=>'name4',date =>'1976-04-04') );
usort($arraydate, create_function ('$a,$b', 'return strtotime($a["dob"]) - strtotime($b["dob"]);'));
print_r($arraydate);
For testing purpose, I shorten my array element to two.