title: Accessing variables and methods outside of class definitions
body: <p>Suppose I have a php file along these lines:</p>
  
  <pre><code>&lt;?php
  function abc() {  }
  
  $foo = 'bar';
  
  class SomeClass {  }
  ?&gt;
  </code></pre>
  
  <p>Is there anything special I have to do to use <code>abc()</code> and <code>$foo</code> inside <code>SomeClass</code>? I'm thinking along the lines of using <code>global</code> in a function to access variables defined outside the function.</p>
  
  <p>(I'm new to OOP in PHP)</p>