πŸ“Š PHP
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

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