title: PHP - access function from a class
body: <p>I have a class like:</p>
  
  <pre><code>class bla_bla extends WP_Widget {
  
    function boo(){
      return 'something';
    }
  
    ...
  }
  </code></pre>
  
  <p>(it's a WordPress widget)</p>
  
  <p>How can I access the <code>boo()</code> function from outside the class?
  I want to assign the value returned by that function to a variable, like <code>$var = boo();</code></p>