Posted by mantrid on 12/31/07 16:18
"Ivαn Sαnchez Ortega" <ivansanchez-alg@rroba-escomposlinux.-.punto.-.org>
wrote in message news:fl6njf$crd$1@hercules.cohp1...
> mantrid wrote:
>
> > [key] => Array
> > (
> > [accum] => 1005.06506667
> > )
>
> It's $data[$key], not $data['key']. You want to access to a given array
> item, given its key.
>
> --
> ----------------------------------
> Ivαn Sαnchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
>
> Un ordenador no es un televisor ni un microondas, es una herramienta
> compleja.
I ve just discovered a problem.
When using
foreach($data as $item){
$data2[$item['selldate'] ] = $item;
}
ksort($data2);
to create the second array ordered by selldate, it is missing out any
records with duplicate selldates. How do I tell it to include duplicates?
Ian
[Back to original message]
|