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