title: Remove Blank ROWS from CSV files in php
body: <p>Is it possible to remove all blank ROWS from a CSV file?</p>
  
  <p>I'm trying to count all rows from a CSV file but would like to exclude lines that doesn't contain a value on a specific column or the whole row.</p>
  
  <p>This is what I'm using to count the rows as of the moment.</p>
  
  <pre><code>$import = file($target_path, FILE_SKIP_EMPTY_LINES);
  $num_rows = count($import);
  echo $num_rows;
  </code></pre>
  
  <p>sample:</p>
  
  <pre><code>Jun,Bronse,137 Raven,Princeton,TX,75407,2147088671,Nell@Gmail.Com,1990,CHEVROLET,K1500,,
  ,,,,,,,,,,,,
  ,,,,,,,,,,,,
  ,,,,,,,,,,,,
  Nella,Brown,111 Venna St,Princeton,TX,75407,2147177671,lakb@Gmail.Com,1993,CHEVROLET,K1500,,
  Jun,Bronse,137 Raven,Princeton,TX,75407,2147088671,Nell@Gmail.Com,1990,CHEVROLET,K1500,,
  ,,,,,,,,,,,,
  Jun,Bronse,137 Raven,Princeton,TX,75407,2147088671,Nell@Gmail.Com,1990,CHEVROLET,K1500,,
  </code></pre>