Number Months Days "; foreach($data as $line){ $value = explode(",", $line); if(($value[0]-1) % 2 == 0){ echo "$value[0]$value[1]$value[2]"; } else{ echo "$value[0]$value[1]$value[2]"; } } echo ""; } function reverseArray($data){ $fh = fopen("mfc211_ior.txt", "w") or die("Unable to open file."); $value = count($data) - 1; for($i = $value; $i >= 0; $i--){ fwrite($fh, $data[$i]); fwrite($fh, "\r\n"); } fclose($fh); } echo <<<_WEBPAGE Clark - I/O File Reading

Clark - IO Page


_WEBPAGE; $data = storeData("mfc211_io.txt"); makeTable($data); reverseArray($data); echo ""; echo ""; ?>