note 67978 added to function.echo

From: Date: Sat, 08 Jul 2006 05:11:25 +0000
Subject: note 67978 added to function.echo
Groups: php.notes 
Request: Send a blank email to php-notes+get-114589@lists.php.net to get a copy of this message
Hi, for the heredoc syntax, I tried to embed <?php ?> code inside the heredoc but it failed. Can this be fixed? like this: <html> <body> <?php $note = <<<PHPHP <p>This is an HTML code</p> <?php echo 'How can i display?'; ?> PHPHP; print $note; ?> </body> </html> ---- Server IP: 66.163.161.117 Probable Submitter: 137.132.3.11 (proxied: 172.21.241.203) ---- X-Spam-Status: No, hits=3.7 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, HTML_60_70,HTML_MESSAGE autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.echo.php Edit -- http://master.php.net/note/edit/67978 Del: integrated -- http://master.php.net/note/delete/67978/integrated Del: useless -- http://master.php.net/note/delete/67978/useless Del: bad code -- http://master.php.net/note/delete/67978/bad+code Del: spam -- http://master.php.net/note/delete/67978/spam Del: non-english -- http://master.php.net/note/delete/67978/non-english Del: in docs -- http://master.php.net/note/delete/67978/in+docs Del: other reasons-- http://master.php.net/note/delete/67978 Reject -- http://master.php.net/note/reject/67978 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#114589) next »