how to update array keys and keep element order ?
| From: | cr dot vegelin at gmail dot com | Date: | Fri, 21 May 2010 09:56:06 +0000 |
| Subject: | how to update array keys and keep element order ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-305382@lists.php.net to get a copy of this message | ||
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