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 Link to comment https://forums.phpfreaks.com/topic/115165-unexpected-t_sl/ 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 Link to comment https://forums.phpfreaks.com/topic/115165-unexpected-t_sl/#findComment-592184 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.