var_dump

(PHP3 >= 3.0.5, PHP4 )

var_dump -- Dumps information about a variable

Description

void var_dump (mixed expression)

This function returns structured information about an expression that includes its type and value. Arrays are explored recursively with values indented to show structure.

Compare var_dump() to print_r().


<pre>
<?php
    $a = array (1, 2, array ("a", "b", "c"));
    var_dump ($a);
?>
</pre>