In PHP, the ________ function can be used to replace all occurrences of a search string with a replacement string in a given string.

  • replace()
  • str_replace()
  • modifyString()
  • swapString()
The str_replace() function in PHP is used to replace all occurrences of a search string with a replacement string in a given string. This is helpful for text manipulation and data processing tasks.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *