Top "Heredoc" questions

A Here-document is a special syntax of writing literal strings in sourcecode, used by different programming languages.

Generate script in bash and save it to location requiring sudo

In bash I can create a script with a here-doc like so as per this site: http://tldp.org/LDP/…

bash sudo heredoc
PHP equivalent to python's triple-quotes - How to print bulk / lots of HTML within PHP without escaping

Possible Duplicate: php string escaping like python’s “”“ ”“”? The triple-quotes in python escapes all quotes and newlines contained within. For …

php python codeigniter heredoc language-comparisons
INSERT INTO SQL Heredoc correct syntax

I'm trying to use heredoc syntax with a INSERT INTO MySQL command, into a database. The problem I'm facing is …

php mysql heredoc
Dirt-simple PHP templates... can this work without `eval`?

Update- Thanks for all the responses. This Q is getting kind of messy, so I started a sequel if anyone's …

php templates eval heredoc
PHP expression <<<EOB

I've been developing with PHP for some years now, and recently came across this code: <?php echo <<&…

php html heredoc