generate functionFri, 27 Jan 2023

import csv from local file and put values into an array

$file = fopen("test.csv", "r"); while(!feof($file)) { $data[] = fgetcsv($file); } fclose($file); print_r($data);

Questions about programming?Chat with your personal AI assistant