Q. Which function is used to replace all occurrences of a string?
β
Correct Answer: (A)
str_replace()
Explanation: str_replace() replaces all instances of a substring.