[slang-users] iterate the elements of an assoc_array in sorted order
Jörg Sommer
joerg at alea.gnuu.de
Sat Jun 3 18:05:20 EDT 2006
Hi,
how is it possible to iterate through an Assoc_Array in sorted order.
This is ugly:
foreach ( assoc_get_keys(templates)[array_sort(assoc_get_keys(templates))] )
Bye, Jörg.
--
Da würde ich auch lieber den Panzerführerschein machen als den MCSE.
Bringt mehr, dürfte das gleiche kosten und macht sicher mehr Spaß.
Jens Dittmar in de.comp.security
More information about the slang-users-l
mailing list