title: Calling a function before it's defined | PHP
body: <p>Is there any possible way when in <strong>one</strong> file - please note, just one file. To call a function when it isn't defined yet, e.g.</p>
  
  <pre><code>&lt;?php
  
  echo global_title();
  
  function global_title()
  {
      $title = $_GET['name'];
  
      return $title;
  }
  
  ?&gt;
  </code></pre>
  
  <p>I don't know how to explain this, but it's not quite possible isn't it? What about variable from another file (without including it) can be called in a different file, e.g.</p>
  
  <p><strong>config.php</strong></p>
  
  <pre><code>&lt;?php
  
  $db = "localhost";
  
  ?&gt; 
  </code></pre>
  
  <p><strong>index.php</strong></p>
  
  <pre><code>&lt;?php
  
  // I do not want it to be accessed by including it or using sessions
  
  echo $db;
  
  ?&gt;
  </code></pre>
  
  <p>Know what I mean? :)</p>