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
                }
            }
2
  • It could help.. but My question is also how can compare with for example $FiscalCode ( the fiscal code of the person that i have) Commented Apr 14, 2021 at 15:56
  • 2
    it's in the second highest voted answer: str_getcsv() Commented Apr 14, 2021 at 16:03

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.