Printing all defined variables and values
<pre><code>&lt;?php echo ‘&lt;pre&gt;’; print_r(get_defined_vars()); echo ‘&lt;/pre&gt;’; ?&gt;
</code></pre>

<p>This is just giving me the arrays for defined variables but not priniting out any variables. How can I print values too?</p>

<p>Also what function can I use to output all the defined variables in this format:</p>

<blockquote>
  <p>Variable name | Variable Type [int, array, string, bool] | Variable defined on line | Variable defined in script | Variable used times | Variable Value</p>
</blockquote>
