I am moving from Perl to PHP and am struggling to get my head around PHP sorting.
Here's what I have in Perl:
$log{'11111'}{'1'}{'20100102'}{'name'}='blah';
$log{'11111'}{'1'}{'20100101'}{'name'}='blah';
$log{'11111'}{'1'}{'20100103'}{'name'}='blah';
$cook='11111';
foreach $entry (sort {$log{$cook}{$a}{time} cmp $log{$cook}{$b}{time}} keys %{$log{$cook}}){
...
}
Basically, I would have the same array structure in PHP but want to sort like I do above.