Here are a few lines below. Only 2 fields: a name field and an ID field. As you can see, the name field contains commas. When the program reads the CSV file, it generates a third field because it "thinks" that the comma within the name field is a field separator.
The script I was using to learn from used the fgets() function. Later in the script, the split() function was used, based on a comma delimiter.
So, in looking back, maybe the author intended the script to be used for only comma-delimited text files, and not comma-delimited csv files. Although, I sorta thought that a comma-delimited text file WAS a csv file, but maybe not...
Alright, well, this was a good learning experience! Thanks for the help.