title: PHP, getting variable from another php-file
body: <p>So I wonder if it is possible to get a variable from a specific php-file when the variable-name is used in multiple php-file.
  An example is this:</p>
  
  <pre><code>&lt;header&gt;
   &lt;title&gt;
    &lt;?php echo $var1; ?&gt;
   &lt;/title&gt;
  &lt;/header&gt;
  </code></pre>
  
  <p>page1.php has <code>$var1 = 'page1'</code>
  page2.php has <code>$var1 = 'page2'</code></p>
  
  <p>footer.php should have <code>&lt;a href=""&gt;$var1 from page1&lt;/a&gt;&lt;a href=""&gt;$var1 from page2&lt;/a&gt;</code></p>
  
  <p>Ok the example is a bit abstract, but as short as I can make it. I think you get what I am getting at! So it is the  in the footer I am after! Got any solutions?</p>