Improved pretty_dump

feature/node-rewrite
Sven Slootweg 13 years ago
parent c16aa033df
commit 3756e1a462

@ -99,8 +99,10 @@ function pretty_dump($input)
{
ob_start();
var_dump($input);
$output = nl2br(ob_get_clean());
return $output;
$output = ob_get_contents();
ob_end_clean();
$output = nl2br(str_replace(" ", "   ", $output));
echo($output);
}
/*function is_empty($variable)

@ -16,6 +16,6 @@ $settings['master_pubkey'] = "/etc/cvm/key.pub";
var_dump($sNode->sDiskFree, $sNode->sDiskUsed, $sNode->sRealHostname);*/
$sContainer = new Container(1);
var_dump($sContainer);
pretty_dump($sContainer);
?>

Loading…
Cancel
Save