πŸ“Š PHP
Q. Which function is used to replace all occurrences of a search string with a replacement?
  • (A) str_replace()
  • (B) replace()
  • (C) str_swap()
  • (D) string_replace()
πŸ’¬ Discuss
βœ… Correct Answer: (A) str_replace()

Explanation: str_replace() replaces all occurrences of the search string with the replacement string.

Explanation by: Mr. Dubey
str_replace() replaces all occurrences of the search string with the replacement string.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
42
Total Visits
πŸ“½οΈ
6 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
95%
Success Rate