var_dump in string code example
Example 1: php var dump die
$variable = "hello";
var_dump($variable);
die();
Example 2: 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>');