I am able to read a nice CSV file, but now I wish to write a value to it as well - the
$data[3]=time();
How do I write this to the file?
Much Thanks!
$handle = fopen("cities.csv", "r");
while (($data = fgetcsv($handle, 836, ",")) !== FALSE) {
//find the match strtoloswer the CITY CODE ALWAYS as AB-52 != ab-52
if (strtolower($data[1])==$cityEC) {
$cityWN=$data[2];
$city=$data[0];
$data[3]=time();
--- write the time to the CSV as data[3]
}
}