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