phpcharan Posted August 25, 2008 Share Posted August 25, 2008 I am newbie in PHP I want to know about heredoc Whats the use of it...? It seems we need to use some identifier to use heredoc...what is an identifier? Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted August 25, 2008 Share Posted August 25, 2008 The manual probably explains it best: http://uk3.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc Basically, the heredoc syntax allows you to delimit a string with a word, rather than with quotes. This means that you don't have to worry about escaping the single or double quote. It's particularly useful when echoing a large chunk of html. The identifier is that word used to delimit the string. 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.