var_dump pretty php code example
Example 1: beautify var_dump
echo '<pre>' . var_export($data, true) . '</pre>';
Example 2: var_dump pretty
$licks = ['one', 'two', 'three'];
echo '<pre>';
print_r($licks);
echo '</pre>';
/*
array(3) {
[0]=>
string(3) "one"
[1]=>
string(3) "two"
[2]=>
string(5) "three"
}
*/
Example 3: vardump pretty print
highlight_string("<?php\n\$data =\n" . var_export($data, true) . ";\n?>");