title: print_r blank space in output
body: <p>I'm working with arrays in PHP and I have noticed strange output with some of the values having an extra line of blank space as shown below.</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [token] =&gt; data
              [tag] =&gt; data
  
          )
      [1] =&gt; Array
          (
              [token] =&gt; data
              [tag] =&gt; data
          )
  </code></pre>
  
  <p>etc.</p>
  
  <p>This alternates with every other element having the extra blank space until element 5. Then they all look like [1] until they reach element [9] which has the strange whitespace line again.</p>
  
  <p>Some data is duplicate too yet this doesn't effect whether the two elements will have the same whitespace issue.</p>
  
  <p>Can this cause me problems or does it show an issue within my code? Why do some elements have this additional whitespace?</p>
  
  <p>EDIT:</p>
  
  <p>I did a var dump, and I have identified that some of the tags have a newline after them.</p>
  
  <p>e.g.</p>
  
  <pre><code>"tagexample
  "
  </code></pre>
  
  <p>rather than</p>
  
  <pre><code>"tagexample"
  </code></pre>
  
  <p>This is confusing however because as I said, a lot of the tags are duplicates and used for multiple tokens and it seems random which is affected.</p>
  
  <p>EDIT2:</p>
  
  <p>I did var export and that shows the same result as above, i.e.</p>
  
  <pre><code>    'tag' =&gt; 'data
  ',
  </code></pre>