Notice at last line of code and I tried preg_split(":\",$fline) instead of split in but still I can see same notice
<?php
$file = fopen("employees.txt","r");
$under_40=0;
$salary_sum=0;
$emplist=[];
$total_employees=0;
echo "Names of all employees whose names end with son : <br/>";
while(! feof($file))
{
$total_employees++;
$fline=fgets($file);
list($name,$age,$dept,$salary)=split(':',$fline);