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; } Quote 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 Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/264769-heredoc-error/#findComment-1356972 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.