title: How to get all variables defined in the current scope/symbol table?
body: <p>Is there a function and/or object and/or extension in PHP that will let you view all the variables defined in the current scope?  Something like:</p>
  
  <pre><code>var_export($GLOBALS)
  </code></pre>
  
  <p>but only showing variables in the current symbol table.</p>