Hi, all --

If I have an associative array $a like

  Array
  (
    [t] => temp1
    [u] => ugh
    [m] => moo
  )

is there any way to re-order the keys so that

  foreach (array_keys($a) as $k)
    { print "$k\n" ; }

will print

  t
  m
  u

for me?  At the moment it seems my only option is

  sort(array_keys($a))

and that's a start but finding another order spec would be lovely...


TIA & HAND

:-D
-- 
David T-G                      * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg93742/pgp00000.pgp
Description: PGP signature

Reply via email to