how to use str_replace in php replace `` in string code example Example: php replace string within string $new_string = str_replace( $take_out, $put_in, $string);