How Can I Find and Replace Text

The function to find and replace text in PHP is the str_replace() function which accepts the following parameters in the format:

str_replace(text_to_replace, word/phrase_to_replace_text_with, which_block_of_text_this_affects);

HTML Code

PHP Code