Next Sep 30 Previous
Item 547241
You want to sort an array of dates in ascending order:
<?php
$dates = array(
new DateTime("2012-01-01"),
new DateTime("2011-01-01"),
new DateTime("2013-01-01")
);
usort($dates, function($a, $b) { ... });
?>
What goes at the dots.
A: return $a < $b;
B: return $a->diff($b);
C: return $a->compare($b);
D: return $a->getOffset($b);
E: None of these



