title: Putting require once in a php class
body: <p>I'm just learning and playing about with php.</p>
  
  <p>I'm trying to separate and clean up my code by putting parts of the php in another file and i'm using require_once to do it, but it doesn't work in a class, is there an alternative?</p>
  
  <p>Here's my code;</p>
  
  <pre><code>&lt;?php
    class test1 {
      require_once ( 'test.php' );
    }
  ?&gt;
  </code></pre>