Re: [PHP] how to update array keys and keep element order ?

2010-05-21 Thread Richard Quadling
On 21 May 2010 10:56, cr.vege...@gmail.com wrote: How do I update an array key without disturbing the element order ? Suppose an existing array(FR, values ...) where I want to change 0 = FR to country = FR and keep the original element order. TIA, Cor Something like ... function

Re: [PHP] how to update array keys and keep element order ?

2010-05-21 Thread cr.vegelin
- Original Message - From: Richard Quadling rquadl...@googlemail.com To: cr.vege...@gmail.com Cc: php-general@lists.php.net Sent: Friday, May 21, 2010 1:30 PM Subject: Re: [PHP] how to update array keys and keep element order ? On 21 May 2010 10:56, cr.vege...@gmail.com wrote: How

Re: [PHP] how to update array keys and keep element order ?

2010-05-21 Thread Richard Quadling
On 21 May 2010 13:34, cr.vege...@gmail.com wrote: - Original Message - From: Richard Quadling rquadl...@googlemail.com To: cr.vege...@gmail.com Cc: php-general@lists.php.net Sent: Friday, May 21, 2010 1:30 PM Subject: Re: [PHP] how to update array keys and keep element order