PHP Manual
Prev |  | Next

# var_dump

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().

      1
      2 <pre>
      3 <?php
      4     $a = array (1, 2, array ("a", "b", "c"));
      5     var_dump ($a);
      6 ?>
      7 </pre>
      8

Prev | Home | Next
unset | Up | Vmailmgr functions