replace one instance in php string code example
Example 1: php replace string within string
$new_string = str_replace( $take_out, $put_in, $string);
Example 2: php substr_replace
substr_replace(string,replacement,start,length)
$new_string = str_replace( $take_out, $put_in, $string);
substr_replace(string,replacement,start,length)