title: Variable undefined when creating heredoc string
body: <p>I am using the <code>EOF</code> function in my php code.</p>
  
  <p>But I have a problem.</p>
  
  <p>When I try to call a variable from another file, it simply ignores it.</p>
  
  <p>I have a variable in another file(header.inc.php) that looks like this:</p>
  
  <pre><code>$site['url']               = "http://www.mydomainname.com";
  </code></pre>
  
  <p>Then I put the require function where the EOF code is:</p>
  
  <pre><code>require_once('../../inc/header.inc.php');
  </code></pre>
  
  <p>The file where the EOF code is , looks like this:</p>
  
  <pre><code>function getServices() {
  $sCode .= &lt;&lt;&lt;EOF
  &lt;a href="{$site['url']}" class="amenu"&gt;Home&lt;/a&gt;
  EOF;
  return $sCode;
  }
  </code></pre>
  
  <p>The variable $site['url'] is empty when I then call that function..</p>
  
  <p>This is driving me crazy! Is there any reason why the EOF code should ignore that variable??</p>