As you can see, in addition to the name and value of each variable, var_dump() also includes the type, such as “string” or “int”. If you don’t need the type information, you can simplify the results using PHP’s var_export(), like so:

echo var_export($GLOBALS['post'], TRUE);

When included in your theme template, that snippet will output a simplified version of the results returned with var_dump(). To illustrate, here is the variable output for the same page used in the previous example: