1. Home
  2. Php
  3. Var_dump

Return all the data about a variable in a structured format.

#php
var_dump(['Square', 123, true, [ 10, 20, 30 ] ]);

/* Returns:
array(4) {
    [0]=>
    string(6) "Square"
    [1]=>
    int(123)
    [2]=>
    bool(true)
    [3]=>
    array(3) {
      [0]=>
      int(10)
      [1]=>
      int(20)
      [2]=>
      int(30)
    }
  }
*/
copy
Full Php cheatsheet