Question: I have three files: First is a text file with list of names, second is a php file to upload the first file and the
I have three files: First is a text file with list of names, second is a php file to upload the first file and the third php file is supposed to count the occurence of each person's name. I do not understand why my count variables $john, $peter etc do not increment and always stay 0. I have even tried equating $temp=='John_Hopkins ' or $temp=='John_Hopkins' and all other variations. How to fix this code so that each variable stores the occurence of the name?



ReadFile.php ReadFile.php
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
