title: php require class call from inside method
body: <p>from my understanding, require pastes code into the calling php file.</p>
  
  <p>what if you were requiring from inside a method...it would paste the entire code/class inside the method, blocking the next statement in the method.</p>
  
  <p>eg.</p>
  
  <pre><code>  function test() {
  
      require 'pathtosomeclasscode';
      somestatement; // any code after the require is blocked.
  
   }
  </code></pre>
  
  <p>how do i get around this, to be able to require code where-ever, without it being pasted in that exact spot?</p>