title: How to get all private var names from a class in PHP?
body: <p><code>get_class_vars</code> gets all public vars, but I want to access private ones.</p>
  
  <p>I am doing it from a parent class, trying to get the child class vars...</p>
  
  <pre><code>class A
  {
      function getvars()
      {
          /* get private vars from child */
      }
  }
  
  class B extends A
  {
      private $name;
  }
  </code></pre>
  
  <p>Is there another method to do this?</p>