php echo formated dump code example
Example 1: var dump php look clear
// make php var_dump print_r var_export look clear and pretty
echo '<pre>' . var_export($data, true) . '</pre>';
die('<pre>' . var_export($data, true) . '</pre>');
Example 2: vardump pretty print
highlight_string("<?php\n\$data =\n" . var_export($data, true) . ";\n?>");