find all occurrences of a string php 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);