Im struggling to make the 2 array's write to a text file. How could I fix the code to get it going? Do I have to use 'echo implode' making the array's into a conversion? Thank you
$rainf_array = array($rainf0, $rainf1, $rainf2, $rainf3, $rainf4, $rainf5, $rainf6 );
$date_array = array($date0, $date1, $date2, $date3, $date4, $date5, $date6 );
//Input value are saved to the file
{
$fileHandle = fopen($fileName, "w");
fwrite($fileHandle, $date_array . ' ' . $rainf_array ."\n" );
fclose($fileHandle);