array merge problem
| From: | Ahmed Abdel-Aliem | Date: | Thu, 01 Sep 2005 08:43:27 +0000 |
| Subject: | array merge problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-221678@lists.php.net to get a copy of this message | ||
i have the array with the following structure :
Array
(
[19] => 20.00
[25] => 20.00
[7] => 30.00
[17] => 30.00
)
when i merge a field to it using array_merge
it returns that :
Array
(
[0] => 20.00
[1] => 20.00
[2] => 30.00
[3] => 30.00
[4] => 200.00
)
how can i merge the field without losing the original keys ?
can anyone help me with that plz
thanks in advance
--
Ahmed Abdel-Aliem
Web Developer
www.SafariStudio.net
+20101108551
registered Linux user number 382789