I'm wanting to know if anyone can help give me some guidance as it relates to the best method of searching for a key in an array, and replacing the associated value.
My array is called "$ini" and it looks something like this...
$key = g_country $value="US"
$key = g_mapimg $value="map.gif"
$key = g_test $value="888888"
Bascially I just want to search for the key "g_mapimg" and replace the value with another value stored in a variable titled "$radio"
Yes, I'm a newbie and I'm trying to articulate this the best I can. Should I use ereg, str_replace, or is there a "bonehead" simple way I can do this with a "foreach" statement?
Thanks a bunch folks. I have no problems reading the manuals, if I just had some idea what I was looking for : ) Meanwhile, I'll just keep poking around the site. (this place Rocks!!)
Best,
Tim