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

Share