title: Is there a way to get the name of a variable? PHP - Reflection
body: <p>I know this is not exactly reflection, but kind of.
  I want to make a debug function that gets a variable and prints a var_dump and the variable name.</p>
  
  <p>Of course, when the programmer writes a call to the function, they <em>already know</em> the variable's name, so they could write something like:</p>
  
  <pre><code>debug( $myvar, 'myvar' );</code></pre>
  
  <p>But I want it to be quick and easy to write, just the function name, the variable, and voilà !</p>
  
  <pre><code>debug( $myvar ); // quicker and easier :)</code></pre>