sathsara Posted July 17, 2008 Share Posted July 17, 2008 $movie_details=<<<EOD<tr><td>dd</td><td>ff</td><td>ff</td></tr>EOD; This piece of code gives the following error. Why is that? Parse error: syntax error, unexpected T_SL in D:\xampp\htdocs\MovieSite\TMP46u8p44vxd.php on line 22 Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted July 17, 2008 Share Posted July 17, 2008 Perhaps reading the requirements for using the heredoc syntax would help - http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.