Anyone know of an easy way to rename an associative array key in place?

array( 'vegetable'=>'lettuce', 'fruit'=>'coconut', 'bean'=>'chickpea',
'grain'=>'corn' )

I want the third element to be 'legume'=>'chickpea', but it seems to
involve rebuilding the array...?

--
Chris Snyder
http://chxo.com/
_______________________________________________
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