On 7/24/07, Jon Baer <[EMAIL PROTECTED]> wrote:
All that is really needed is a preserve_key to be added to
array_splice function and you pretty much have it ...

- Jon

Indeed. When I saw your post I got all excited about doing something like:

array_splice( $set, 3, 1, array('legume'=>'chickpea') );

But as you point out, "keys in replacement array are not preserved."
Not really worthy of the name "splice" in my opinion.
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to