About 269,000 results
Open links in new tab
  1. PHP: str_replace - Manual

    If search and replace are arrays, then str_replace () takes a value from each array and uses them to search and replace on subject. If replace has fewer values than search, then an empty …

  2. PHP str_replace () Function - W3Schools

    Example Replace the characters "world" in the string "Hello world!" with "Peter":

  3. PHP str_replace () Function - GeeksforGeeks

    Nov 30, 2021 · In this article, we will see how to replace the occurrence of the search string with the replacing string using the str_replace () function in PHP, along with understanding their …

  4. PHP str_replace

    Use the str_replace() function to replace a substring with another string. Use the str_ireplace() function to search a substring case-insensitively and replace it with another string.

  5. PHP str_replace Tutorial: Replace Strings the Easy Way

    Nov 14, 2025 · Learn PHP str_replace with clear examples, best practices, and tips on how to replace a string in PHP for robust, readable code.

  6. PHP String str_replace () Function - Online Tutorials Library

    The PHP String str_replace () function is used to replace all occurrences of the search string or array of search strings with a replacement string or array of replacement strings in the given …

  7. PHP str_replace () Function – Replace Text in a String

    The str_replace () function replaces specific text within a string with new text. It also supports replacing multiple values at once using arrays.

  8. PHP str_replace () Function - Tutorial Republic

    If find and replace are arrays, then str_replace() takes a value from each array and uses them to find and replace on string, as you can see in the following example:

  9. Learn to Replace Characters in a String Using PHP - W3Schools

    In this tutorial, you will learn how to replace characters in a string using PHP. This functionality is crucial for data manipulation, cleaning inputs, and generating dynamic output in web applications.

  10. PHP str_replace () Function - W3Schools

    Example Replace the characters "world" in the string "Hello world!" with "Peter":