Jump to content

[SOLVED] Replace a value in an array


ninedoors

Recommended Posts

Is there a simple way to replace a value in an array if I have the key value?  So I have:

 

Array('a' => 345, 'b' => 343439, 'c' => 529)

 

and I know the element key I want to replace.  Lets say 'b'.  Is there a way fro me to replace 343439 with 5679?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/102575-solved-replace-a-value-in-an-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.