<?php
$array[] = Array(Array(0=>'December', 1=>'1', 2=>'2013'),'stamp'=> 1385874000);
$array[] = Array(Array(0=>'December', 1=>'1', 2=>'2013'),'stamp'=> 1388293200);
$array[] = Array(Array(0=>'December', 1=>'1', 2=>'2013'),'stamp'=> 1357189200);
usort($array, function(intval($a), intval($b)) {
return $a['stamp'] - $b['stamp'];
});
print_r($array)
;
?>
- Output for 5.4.0 - 5.4.23
- Parse error: syntax error, unexpected '(', expecting '&' or variable (T_VARIABLE) in /in/kJfAk on line 6
Process exited with code 255. - Output for 5.3.0 - 5.3.28
- Parse error: syntax error, unexpected '(', expecting '&' or T_VARIABLE in /in/kJfAk on line 6
Process exited with code 255.
preferences:
196.58 ms | 1395 KiB | 60 Q