here-doc command
Posted by: JiNgloRD (---.92.95.219.cbj01-home.tm.net.my)
Date: March 28, 2007 12:53PM

How to write down here doc command.? I've already write a proper command for it but still got error.
"Parse error: syntax error, unexpected $end in D:\web ku\www\MyTest\here_doc_syntax.php on line 21"

the syntax:
<html>
<head>
<title>
<?php
echo "here doc syntax";
?>
</title>
</head>
<body>
<?php
$laa =<<<TEST
This is example double quot = Great Days
This is example single quot = Fail
This is example double quot = Great Days
This is example single quot = sentence2
item1 item2 item3
TEST
print $laa;
?>
</body>
</html>

Options: ReplyQuote


Sorry, only registered users may post in this forum.