The str_replace() function replaces some characters with some other characters in a string.
| Parameter | Description |
|---|---|
| find | Required. Specifies the value to find |
| replace | Required. Specifies the value to replace the value in find |
| string | Required. Specifies the string to be searched |
| count | Optional. A variable that counts the number of replacements |
Replace the characters "world" in the string "Hello world!" with "Falguni":