$file = fopen("https://dev.emmell.org/emmell/ics4u/FAKE-Student_Linear_TT_WCAR_20122013.csv","r");
while ($row = fgetcsv($file)) {
print_r($row);
}
each $row will contain the following array:
Array
(
[0] => Student
[1] => Student_No
[2] => Grade
[3] => Semester
[4] => A
[5] => B
[6] => C
[7] => D
[8] => AFT1
[9] => EL
)
| Consider reorganizing your array into something like this:
[614858811] => Array
(
[Name] => Abramchuk,Ira
[1] => Array
(
[0] => P2:FIF1D.-04:McMillan,Megan
[1] => 206:SNC1DF-03:McColeman,Katherine
[2] => GYMB:PPL1OP-04:Thomson,Ashley
[3] => 210:MPM1D.-08:Menna,Francine
)
[2] => Array
(
[0] => 106:CGC1DF-02:Brule,Lise
[1] => 111:BTT1OF-03:Clare,Ryan
[2] => STU:ATC1O/2O.-01:Clare,Lisa
[3] => P7:ENG1D.-05:Clare,Lisa
)
)
|