Skip to content

Instantly share code, notes, and snippets.

@awolad
Created April 11, 2018 18:41
Show Gist options
  • Save awolad/7b4c48510247fec5ec26d4ee29588237 to your computer and use it in GitHub Desktop.
Save awolad/7b4c48510247fec5ec26d4ee29588237 to your computer and use it in GitHub Desktop.
<?php
$attendanceArray = [];
$fp = fopen(request()->attendance, 'rb');
while ( ($line = fgets($fp)) !== false) {
//echo "$line<br>";
//$line = explode(' ', $line);
$line = explode("\t", $line);
array_push($attendanceArray, $line);
}
//echo '<pre>';
//print_r($attendanceArray);
//exit;
//var_dump(is_int((int)$attendanceArray[0][7]));
dd($attendanceArray);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment