A

Admin • 833.24K Points
Coach

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()
  • Correct Answer - Option(A)
  • Views: 27
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.