Home »
MCQs »
PHP MCQs
Which function is used to replace text within a string?
42. Which function is used to replace text within a string?
- str_replace()
- replace()
- replace_str()
- string-replace()
Answer: A) str_replace()
Explanation:
The str_replace() is used to replace text within a string.