mindapolis Posted June 25, 2012 Share Posted June 25, 2012 can someone help me understand why I'm getting an error with this heredoc code? function menu() { echo <<<HEREDOC <ul> <li><a href="homepage.php">Home</a></li> </ul> HEREDOC; } Link to comment https://forums.phpfreaks.com/topic/264769-heredoc-error/ Share on other sites More sharing options...
Pikachu2000 Posted June 25, 2012 Share Posted June 25, 2012 See the bright pink section titled "Warning": http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc Link to comment https://forums.phpfreaks.com/topic/264769-heredoc-error/#findComment-1356948 Share on other sites More sharing options...
mindapolis Posted June 26, 2012 Author Share Posted June 26, 2012 Got it! Thank you so much for the tip. Link to comment https://forums.phpfreaks.com/topic/264769-heredoc-error/#findComment-1356972 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.