Reply to Re: Replacing key in associative array

Your name:

Reply:


Posted by AlexVN on 01/30/07 23:23

On Jan 30, 1:53 pm, Rik <luiheidsgoe...@hotmail.com> wrote:
> http://nl2.php.net/manual/en/function.array-splice.php

What do you mean by this?
Anyway, this will not work because "Note that keys in replacement
array are not preserved."

David, you need to use array_keys and array_values, change the key in
first array (with keys) and then use array_combine to create new
array.

Sincerely,
Alexander
http://www.alexatnet.com/ - PHP/Ajax notes,tips,tutorials

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация