str to replace code example
Example 1: php replace
str_replace ($search, $replace, $subject);
Example 2: php replace string within string
$new_string = str_replace( $take_out, $put_in, $string);
str_replace ($search, $replace, $subject);
$new_string = str_replace( $take_out, $put_in, $string);