HTML; $replace = <<<'HTML'
HTML; $newContent = str_replace($search, $replace, $content); if ($newContent !== $content) { file_put_contents('display.php', $newContent); echo "Replaced successfully\n"; } else { echo "Pattern not found\n"; }