php replace every existance in string code example
Example 1: php replace
str_replace ($search, $replace, $subject);
Example 2: str_replace php
echo str_replace("worss","world","Hello worss in PHP!!");
str_replace ($search, $replace, $subject);
echo str_replace("worss","world","Hello worss in PHP!!");