この行AT101A (1st Yr.-1st Sem) BSAT-12-01
を次のように分割します。
array1 = AT101A
array2 = (1st Yr.-1st Sem)
array3 = BSAT
これは私のコードです:
$file = $_FILES['file']['tmp_name'];
$handle = fopen($file,"r");
while(($fileop = fgetcsv($handle,1000,",")) !==false)
{
$coursecode = $fileop[1];
$units = $fileop[2];
$day = $fileop[4];
$timein = $fileop[5];
$timeout = $fileop[7];
$room = $fileop[8];
$section = $fileop[0];
if($section != "SECTION") {
$section.split(" " , " ");
echo $section;
} else {
}