title: what is the difference between windows csv and mac csv?
body: <p>I am trying to parse a csv file using this code<br/></p>
  
  <pre><code>if (($handle = fopen($csvFilePath, "r")) !== FALSE) {
          $c=0;
          $string="";
          while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
          if($c&gt;0)
          {
          if(($data[$email]!="") and ($data[$firstname]!="") and ($data[$lastname]!=""))
          {
          $string.='(1,';         
              $string.="'".$data[$email]."',";
              $string.="'".$data[$firstname]."',";
              $string.="'".$data[$lastname]."',";
              $string.="'".Yii::app()-&gt;params['clientimporttext']."'";
  
         $string.='),';
         }
          }
          $c++;
      }
  fclose($handle);
  
  }
  </code></pre>
  
  <p>It is working fine with windows csv. <br/>
  but when i create a csv from mac and parse that it is not working.( it cant identify end of line),<br/></p>
  
  <p>also when i open the same windows csv with mac and parse using the same code it is not working. <br/> but when i save it as windows csv. it again works.<br/>
  <b>
  so actually wat is the difference between mac csv and windows csv?<br/>
  Is the delimiter different for these two? <br/>
  How should i change the code to make it work with both?</b></p>