I used laravel for a long time but currently I work with wordpress. I loved using the laravel's DD()
function.
But in wordpress I can only use these,
print_r(),
var_dump(),
var_export()....
These all are just expand entire array or object. But I need laravel's expand and close mechanism for handling array and object. I use the following as general dd need,
if (!function_exists('dd')) {
function dd()
{
echo '<pre>';
array_map(function($x) {var_dump($x);}, func_get_args());
die;
}
}
It works well, but I need a styled and organised form of listing.
Is it possible ?