I have a text file that I need to open via PHP and load into an array, this much seems to work so far. What I am having problems with is I only want to display rows where Employee ID equals a specified value.
This is something that I cannot get via Mysql and can only get out of a .txt file. How can I get it to only echo the lines where $value= 141991 (for example)?
Employee ID Punch Time
$myfile = '../Attendance/current-punches.txt';
$lines = file($myfile);
if ($lines[i] = $value)