0

I have a csv file, that contains a lot of information like:

FiscalCode, Number, Data

I have a fiscalCode of a person, and I should compare if the fiscalCode of person is in the csv file.

How can I do??

I have think something like:

$filename = ('mycsvfile.csv');


            $f = fopen($filename, 'r');
            if ( $f ) {
                while( ( $line = fgetcsv($f)) !== false){
                     // there i should compare
                }
            }
Jack23
  • 1,368
  • 7
  • 32
  • It could help.. but My question is also how can compare with for example $FiscalCode ( the fiscal code of the person that i have) – Jack23 Apr 14 '21 at 15:56
  • 2
    it's in the second highest voted answer: `str_getcsv()` – Vickel Apr 14 '21 at 16:03

0 Answers0