Hai,
I need to read and write from csv file ,
and i am try this but its not working
$file = fopen("C:\Users\Downloads\workorder.csv","r");
$sno=1;
while (($line = fgetcsv($file)) !== FALSE) {
//$line is an array of the csv elements
print_r($line);
}
fclose($file);
?>


Ranjeet PatraRank #1,436 · 1.1K reputationPosted Apr 7, 2017, 4:37 AM EDT
Waruna Manjula51 reputationPosted May 1, 2017, 11:04 PM EDT
Dharmraj ThakurRank #577 · 4.2K reputationPosted May 11, 2017, 8:26 PM EDT