webdev007
Programmer
- Sep 9, 2005
- 168
This is within a PHP page
// some php then
echo <<<CONTENT
any HTML
the following line ends the html section
CONTENT;
// back in php, I try to make the following php snippet working
// but it throws an error where I restart a new heredoc and the php snippet is not parsed
// instead the snippet is "printed"
if($secure_email=="y")
{
include"secure_email/";
}
else
{
echo"<span id=\"content\">$email</span></td></tr>";
}
// new heredoc to add more html is then throwing an error, error is the next line:
echo <<<END
How should I write it, I looked at the manual, tried " . ", tried {} but none works
// some php then
echo <<<CONTENT
any HTML
the following line ends the html section
CONTENT;
// back in php, I try to make the following php snippet working
// but it throws an error where I restart a new heredoc and the php snippet is not parsed
// instead the snippet is "printed"
if($secure_email=="y")
{
include"secure_email/";
}
else
{
echo"<span id=\"content\">$email</span></td></tr>";
}
// new heredoc to add more html is then throwing an error, error is the next line:
echo <<<END
How should I write it, I looked at the manual, tried " . ", tried {} but none works