Is there an inbuilt PHP function to replace multiple values inside a string with an array that dictates exactly what is replaced with what?
For example:
str_replace() does that.
str_replace()
You can check the manual for more detailed explanation.