I have the array of dates below
array(5) { [0]=> string(19) \"2012-06-11 08:30:49\" [1]=> string(19) \"2012-06-07 08:03:54\" [2]=> st
Sort the array by date, and then get the front value of the array.
$dates = array(5) { /** omitted to keep code compact */ } $dates = array_combine($dates, array_map('strtotime', $dates)); arsort($dates); echo $dates[0];