str_replace: Replace all events of the search line with the replacement line.
Suppose we have string "Hello world!" and we want to search Hello if its found in it, we will replace Hello to "Hey" then echo the result will be like this "Hey world!"
Let's do it in code example
echo str_replace("Hello", "Hey", "Hello World!");
Loading, please wait...