how to replace a part of a string in php code example Example: php replace str_replace ($search, $replace, $subject);