title: PHP equivalent to python's triple-quotes - How to print bulk / lots of HTML within PHP without escaping
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6556178/php-string-escaping-like-pythons">php string escaping like python’s “”“ ”“”?</a>  </p>
  </blockquote>
  
  
  
  <p>The triple-quotes in python escapes all quotes and newlines contained within. For example,</p>
  
  <pre><code>""" this
  is all
  
  
  just one string. I can even tell you "I like pi".
  Notice that the single quotes are escaped - they don't end the string; and the newlines become part of the string
  """
  </code></pre>
  
  <p>Does anybody know if PHP has an equivalent to python's </p>
  
  <pre><code>""" &lt;form&gt;&lt;h1&gt;PUT HTML HERE&lt;/h1&gt; &lt;/form&gt; """
  enter code here
  </code></pre>
  
  <p>EDIT:
  For those looking at this question in the future, I have answered it, here is an example:</p>
  
  <p><code>$heading = "Heading Gettizburgz";
                  print &lt;&lt;&lt; END
                  &lt;p&gt;&lt;h1&gt;$heading&lt;/h1&gt; "in quotes" 'in single' 
                  Four score and seven years ago&lt;br/&gt;
                  our fathers set onto this continent&lt;br/&gt;
                  (and so on ...)&lt;br/&gt;
                  &lt;/p&gt;
  END;</code></p>
  
  <p>prints:
  <code>
  Heading Gettizburgz
  "in quotes" 'in single' Four score and seven years ago
  our fathers set onto this continent
  (and so on ...)
  </code></p>
  
  <p>Note one important thing, you must make sure that the very last <code>END</code> is to the far left (fist column) of your code without ANY spaces before it.</p>
  
  <p>source: <a href="http://alvinalexander.com/blog/post/php/php-here-document-heredoc-syntax-examples" rel="nofollow noreferrer">http://alvinalexander.com/blog/post/php/php-here-document-heredoc-syntax-examples</a></p>