str_replace()

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