title: Deleting empty array elements
body: <p>I have just been shown the method to remove numbers with more than 2 decimal places from an array <a href="https://stackoverflow.com/questions/13325238/deleting-values-with-more-than-2-decimal-place-in-array">[here]</a>.
  The thing is when i try to format the output using echo instead of var_dump as such:</p>
  <pre><code>$line = 1;
  for($i = 1; $i &lt; count($value1); $i++){
      echo &quot;$line | &quot;.$value1[$i][0].&quot; | &quot;.$value1[$i][1].&quot; | &quot;.$value1[$i][2].&quot; | &quot;.$value1[$i][3].&quot; | &quot;.$value1[$i][4].'&lt;br&gt;';
      $line = $line + 1;
  }
  </code></pre>
  <p>I get many &quot;Notice: Undefined offset: &quot; all over the place. Is there a way to reset the rows in the array?</p>
  <p>The reason i need to format it with &quot;echo&quot; is so that i can copy the output directly and paste it into a document without having to delete the unnecessary characters from &quot;var_dump&quot;. Am i doing it wrong?</p>
  <p>Thanx in advance...</p>
  <p>Thanx in advance.</p>