title: Include file in a function and access their variables in parent program
body: <p>I have a function:</p>
  
  <pre><code>function something() {
     require_once("something.php");
  }
  </code></pre>
  
  <p>something.php has some variables</p>
  
  <pre><code>&lt;?php 
  $something = "something";
  ?&gt;
  </code></pre>
  
  <p>I want to be able to access the <code>$something</code> from the main program. How can I do this?</p>
  
  <p>Eg:</p>
  
  <pre><code>something();
  echo $something;
  </code></pre>
  
  <p>Thanks a lot!</p>