str_replace

PHP 4, PHP 5, PHP 7, PHP 8
str_replace - Replace all occurrences of the search string with the replacement string

Example #1 Basic str_replace examples

PHP Version:

Example #2 Examples of potential str_replace gotchas

PHP Version:


Example #3 of str_replace

PHP Version:


Function str_replace:

Strings Functions

Most used PHP functions