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.