Franz Holzinger wrote: > change the order these 2 lines. > I do not know if the ksort could touch the order of the array items for > the next loop. > > ksort($arr); > reset($arr); Good point, will do before committing. cheers Ingmar