A

Admin • 833K Points
Coach

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

  • (A) str_replace()
  • (B) replace_string()
  • (C) change()
  • (D) substitute()
  • Correct Answer - Option(A)
  • Views: 34
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

str_replace() replaces all instances of a substring.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.