php replace the second occurrence of string code example
Example: php replace every occurrence of character in string
//replaces every occurence of $search with $replace in the string $subject
str_replace ($search, $replace, $subject);
//replaces every occurence of $search with $replace in the string $subject
str_replace ($search, $replace, $subject);