var_export - Prints or returns a syntax string representation of a variable You also link to http://php.net/manual/en/function.var-export.php
<?php
var_export(array (1, 2, array ("a", "b", "c")));
?>
This will be output as follows:
array ( 0 => 1, 1 => 2, 2 => array ( 0 => 'a', 1 => 'b', 2 => 'c', ), )
source
share