Jump to content

whats the use of ' heredoc '


phpcharan

Recommended Posts

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.