It keeps coming up as Parse error: syntax error, unexpected T_SL in C:\wamp\www\first.php on line 5
I read in my book and I know it says no whitespaces, but I dont see any spaces, and if I make the line 5 code turn into print<<<MY_BOUNDARY it still display's the same error.
My code is as follows:
1 <?php
2
3 $bgcolor="darkblue";
4 $tablecolor = "yellow";
5 print <<<MY_BOUNDARY
6 <html><head><title>heredoc</title</head>
7 <body bgcolor="$bgcolor">
8 <table border="1" bgcolor="$tablecolor">
9 <tr><th>Author</th><th>Book</th></tr>
10 <tr>
11 <td>Marcel Proust</td>
12 <td>Rememberance of Things Past</td>
13 </tr>
14 <tr>
15 <td>Charles Dickens</td>
16 <td>Tale of Two</td>
17 </table>
18 </body> </html>
18 MY_BOUNDARY;
20
21 ?>