Basically, this function dumps information about a variable. This function displays structured information about one or more expressions that includes its type and value. Arrays and objects are explored recursively with values indented to show structure.



Sample code

The following PHP code will demonstrate the use of var_dump.

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


Output

output