note 67978 deleted from function.echo by nlopess
| From: | nlopess@php.net | Date: | Sat, 08 Jul 2006 10:02:25 +0000 |
| Subject: | note 67978 deleted from function.echo by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-114591@lists.php.net to get a copy of this message | ||
Note Submitter: a at b dot c
----
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>