<? $inmystring = "Hello World!"; $mynewstring = ereg_replace("Hello", "Goodbye", $inmystring); print $mynewstring; ?>