title: Get all the defined functions for an object
body: <p>Is there an equivalent of <a href="http://www.php.net/manual/en/function.get-defined-functions.php" rel="noreferrer"><code>get_defined_functions()</code></a> which only shows the functions of a given object?</p>
  
  <p>Example usage and output:</p>
  
  <pre><code>class A {
      function foo() { }
      function bar() { }
  }
  class B extends A {
      function foobar() { }
  }
  $b = new B();
  print_r(get_object_functions($b));
  
  // Array (
  //  0 =&gt; "foo",
  //  1 =&gt; "bar",
  //  2 =&gt; "foobar"
  //)
  </code></pre>