PHP Find/Replace Multiple Words in String

PHP Simple Function to Perform Unlimited Number of Replacements in a String to Avoid Calling str_replace() Multiple Times

Home Short:

If you have to make multiple replacements in php, you can use str_replace multiple times but this can get pretty code bulky and messy looking if you have more than a few string replacements to perform.

Another way to perform multiple replacements in php using str_replace() in combination with the explode() function.

S
H
A
R
E