title: Is there a way to get user declared variables in PHP?
body: <p><strong>get_defined_vars</strong> is about to (citation):</p>
  
  <blockquote>
    <p>return a multidimensional array containing a list of all defined variables, be them environment, server or user-defined variables</p>
  </blockquote>
  
  <p>well, for my debugging task, I need only those user-defined. Is there php-built-in or supplement function?</p>
  
  <p>EDIT:
  Ok I didn't made clear what exactly I was after, here is little example:</p>
  
  <pre><code>&lt;?php
  /*
  this script is included, and I don't have info
  about how many scripts are 'above' and 'bellow' this*/
  
  
  //I'm at line 133
  $user_defined_vars = get_user_defined_vars();
  //$user_defined_vars should now be array of names of user-defined variables
  //what is the definition of get_user_defined_vars()?
  
  ?&gt;
  </code></pre>