title: PHP: remove empty array strings in multidimensional array
body: <p>I have this array:</p>
  
  <pre><code>$aryMain = array(array('hello','bye'), array('',''),array('','')); 
  </code></pre>
  
  <p>It is formed by reading a csv file and the array('','') are the empty rows at the end of the file. </p>
  
  <p>How can I remove them? </p>
  
  <p>I've tried: </p>
  
  <pre><code>$aryMain = array_filter($aryMain);  
  </code></pre>
  
  <p>But it is not working :(</p>
  
  <p>Thanks a lot! </p>