successfully completed the problem statement, final.csv is created after the execution of the my_work.php, however final.csv should not be present earlier, i have directly provided the output file. You may delete the final.csv and executemy_work.php to get the output file