title: PHP print_r function does not nest the printed array
body: <p>I used the <code>print_r</code> function to print array fetched from a table in database. Instead of a nicely formatted array like this:</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [id] =&gt; 1
              [firstname] =&gt; Firstname one
              [lastname] =&gt; Lastname one
          )
  
      [1] =&gt; Array
          (
              [id] =&gt; 2
              [firstname] =&gt; Firstname two
              [lastname] =&gt; Lastname two
          )
  
      [2] =&gt; Array
          (
              [id] =&gt; 3
              [firstname] =&gt; Firstname three
              [lastname] =&gt; Lastname three
          )
  )
  </code></pre>
  
  <p>I got inline results, like this:</p>
  
  <pre><code>Array ([0] =&gt; Array ([id] =&gt; 1 [firstname] =&gt; Firstname one [lastname] =&gt; Lastname one ) [1] =&gt; Array ([id] =&gt; 2 [firstname] =&gt; Firstname two...
  </code></pre>
  
  <p>This is a simple example, my actual array is nested three times, so the result is a massive block of inline string that makes readability hard.</p>
  
  <p>Why do I get results such as this?</p>