title: How to remove duplicate rows from a CSV file?
body: <p>Is there a simple way to find and remove duplicate rows from a CSV file?</p>
  
  <p>Sample test.csv file:</p>
  
  <pre><code>row1 test tyy......
  row2 tesg ghh
  row2 tesg ghh
  row2 tesg ghh
  ....
  row3 tesg ghh
  row3 tesg ghh
  ...
  row4 tesg ghh
  </code></pre>
  
  <p>Expected results:</p>
  
  <pre><code>row1 test tyy......
  row2 tesg ghh
  ....
  row3 tesg ghh
  ...
  row4 tesg ghh
  </code></pre>
  
  <p>Where can I start to accomplish this with PHP?</p>