$str = <<<MY_MARKER <script type="text/javascript"> document.write("Hello World!"); </script> MY_MARKER; echo $str;