I have a CSV file with several lines and I would like in php only recover the data whose column 1 the value is equal to 27, how can I do that?
That's what I already did:
<?php
require(dirname(__FILE__) . '/config/config.inc.php');
$fileDir = 'stock.csv';
$fileCsv = file_get_contents($fileDir);
echo $fileCsv;
My CSV file has 3 columns:
| number | ref | stock |
| 19 | 135 | 10 |
| 27 | 656 | 20 |
Thank you.