PHP str_replace() May 22, 2012 Pramod T P It replace all occurrences of the search string with another string Example <?php echo str_replace(“phpcodez”, “phpcode”, “phpcodez welcomes you”); ?> Output phpcode welcomes you