title: How can I format (pretty print) a multi-dimensional array for debugging?
body: <p>I've seen some online pretty print modules for code. Anyone know of one that will format a multi-dimensional array into readable display?</p>
  
  <p>Example, translate this:</p>
  
  <blockquote>
    <p>array(83) { [0]=> array(2) {
    ["name"]=> string(11) "CE2 Options"
    ["type"]=> string(5) "title" } [1]=>
    array(1) { ["type"]=> string(4) "open"
    } [2]=> array(5) { ["name"]=>
    string(8) "Template" ["desc"]=>
    string(638) "test description"
    ["id"]=> string(9) "my_theme"
    ["type"]=> string(14) "selectTemplate"
    ["options"]=> array(13) {</p>
  </blockquote>
  
  <p>Into this...</p>
  
  <pre><code>array(83) { 
      [0]=&gt; array(2) { ["name"]=&gt; string(11) "My Options" ["type"]=&gt; string(5) "title" } 
      [1]=&gt; array(1) { ["type"]=&gt; string(4) "open" } 
      [2]=&gt; array(5) { 
          ["name"]=&gt; string(8) "Template" 
          ["desc"]=&gt; string(638) "Test description" 
          ["id"]=&gt; string(9) "my_theme" 
          ["type"]=&gt; string(14) "selectTemplate" 
          ["options"]=&gt; array(13) { 
              [0]=&gt; string(10) "test" 
  </code></pre>