HTML; $new = <<
>
HTML; $new_content = str_replace($old, $new, $content); if ($new_content !== $content) { file_put_contents($file, $new_content); echo "Patched successfully!\n"; } else { echo "Old block not found!\n"; }