Q. Which function is used to replace all occurrences of a string?

  • (A) str_replace()
  • (B) replace_string()
  • (C) change()
  • (D) substitute()
πŸ’¬ Discuss
βœ… Correct Answer: (A) str_replace()
Explanation: str_replace() replaces all instances of a substring.
Explanation by: Mr. Dubey
str_replace() replaces all instances of a substring.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
92
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
96%
Success Rate