string replace all php code example
Example 1: str_replace php
echo str_replace("worss","world","Hello worss in PHP!!");
Example 2: php replace every occurrence of character in string
//replaces every occurence of $search with $replace in the string $subject
str_replace ($search, $replace, $subject);