Added pretty_dump to CHP

feature/node-rewrite
Sven Slootweg 13 years ago
parent 4389720d19
commit c16aa033df

@ -95,6 +95,14 @@ function clean_array($arr)
return $result; return $result;
} }
function pretty_dump($input)
{
ob_start();
var_dump($input);
$output = nl2br(ob_get_clean());
return $output;
}
/*function is_empty($variable) /*function is_empty($variable)
{ {
return (trim($variable) == ""); return (trim($variable) == "");

Loading…
Cancel
Save