replace a word in php code example
Example 1: php replace
str_replace ($search, $replace, $subject);
Example 2: php replace string
str_replace ($needle, $replacement, $haystack);
str_replace ($search, $replace, $subject);
str_replace ($needle, $replacement, $haystack);