PHP’s str_replace function will replace every occurrence of the selected string with another string.

echo str_replace("car", "bike", "That car is red!");

The code above displays the text: That bike is red!
Function parameters:
str_replace(searched_string, replacement_string, target_string, count)
searched_string – the string that will be replaced
replacement_string – the string that will be used to replace the searched string
target_string – the string [...]