I'm sorting an array as:
我正在将数组排序为:
function date_compare($a, $b)
{
$t1 = strtotime($a['date']);
$t2 = strtotime($b['date']);
return $t1 - $t2;
}
usort($array, 'date_compare');
functioI'm sorting an array as:
我正在将数组排序为:
function date_compare($a, $b)
{
$t1 = strtotime($a['date']);
$t2 = strtotime($b['date']);
return $t1 - $t2;
}
usort($array, 'date_compare');
functio