title: PHP - passing variables to classes
body: <p>I trying to learn OOP and I've made this class</p>
  
  <pre><code>class boo{
  
    function boo(&amp;another_class, $some_normal_variable){
      $some_normal_variable = $another_class-&gt;do_something(); 
    }
  
    function do_stuff(){
      // how can I access '$another_class' and '$some_normal_variable' here?
      return $another_class-&gt;get($some_normal_variable);
    }
  
  }
  </code></pre>
  
  <p>and I call this somewhere inside the <code>another_class</code> class like</p>
  
  <pre><code>$bla = new boo($bla, $foo);
  echo $bla-&gt;do_stuff();
  </code></pre>
  
  <p>But I don't know how to access $bla, $foo inside the do_stuff function</p>