Hi, all --

If I have an associative array

  Array
  (
      [t] => Array
          (
              [t1] => temp1
              [t2] => temp2
          )
  
      [f] => Array
          (
              [f1] => foo1
              [f2] => foo2
          )
  
  )

and I want to change the key 't' to, say, 'tmp', is there a way to change
it or do I have to use the brute force

  $a[tmp] = $a[t] ;
  unset $a[t] ;

approach?

I expect that, however it's done, it works the same way on just a 1-d
assoc array like

  Array
  (
    [t1] => temp1
    [t2] => temp2
  )

but in particular I have the 2-d array case that I need to play with
today.


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: msg93740/pgp00000.pgp
Description: PGP signature

Reply via email to