Answers for "php var_dump pretty"

PHP
2

pretty var_dump

echo '<pre>' . var_export($data, true) . '</pre>';
Posted by: Guest on November-22-2020
0

beautify var_dump

echo '<pre>' . var_export($data, true) . '</pre>';
Posted by: Guest on September-01-2020
0

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"
}
*/
Posted by: Guest on August-28-2020
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>');
Posted by: Guest on July-23-2020
0

vardump pretty print

highlight_string("<?php\n\$data =\n" . var_export($data, true) . ";\n?>");
Posted by: Guest on September-17-2020

Browse Popular Code Answers by Language