title: PHP echo in <title> not working - Why?
body: <p>I have the following file structure:</p>
  <p><strong>header.php</strong></p>
  <pre><code>    &lt;!DOCTYPE html&gt;
     &lt;html&gt;
        &lt;head&gt;
           &lt;title&gt;&lt;?php echo $title ?&gt;&lt;/title&gt;
           &lt;!-- Rest of my header --&gt;
  </code></pre>
  <p><strong>anypage.php</strong></p>
  <pre><code>&lt;?php include 'header.php'; ?&gt;
  &lt;?php $title= &quot;My gorgeous page title&quot;; ?&gt;
  &lt;!-- Page content here --&gt;
  </code></pre>
  <p>I use this to add dynamic title to pages, as well as dynamic meta-tags, for SEO reasons</p>
  <h2>The problem is:</h2>
  <p><code>&lt;?php echo $title ?&gt;</code> only works if placed <strong>after</strong> <code>&lt;?php $title= &quot;My gorgeous page title&quot;; ?&gt;</code>. What to do then?</p>