title: Are the short echo tags intended to use only when PHP code is embedded into HTML code?
body: <p>I tried to use short echo tags i.e. <code>&lt;?= ?&gt;</code> to display a string into my PHP file which already has PHP code present within <code>&lt;?php ?&gt;</code> tags. So, I tried to use the short echo tag within my code and got parse error.</p>
  
  <p>See below code :</p>
  
  <pre><code>&lt;?php
  
   echo 'if you want to serve PHP code in XHTML or XML documents,
         use these tags'; 
  
   &lt;?= 'While this is going to be parsed.'; ?&gt;
  
  ?&gt;
  </code></pre>
  
  <p>I got following output :</p>
  
  <pre><code>Parse error: syntax error, unexpected '&lt;', expecting end of file in
  </code></pre>
  
  <p>So, my question is: Are the short echo tags intended to be used only when PHP code is going to embed into HTML code and that's too not within already existing php pair of tags?</p>
  
  <p>Can's I use in a file which contains pure PHP code only?</p>