I have a text file with spam words. I want to have an array filled with those words. I've tried doing:
$fp = @fopen("../files/spam.txt",'rb');
$words = fgetcsv($fp,100,"\n");
but it doesn't work (words only has the first letter of the txt file in it first cell).
do you how to do this?
EDIT: the .txt file looks like this:
yahoo
google
msn
blah
blah
EDIT: I DONT KNOW WHAT IS A CSV FILE! THIS IS A TEXT FILE! I JUST GIVE AN EXAMPLE.
please could some1 help me it looks really easy, i just dont understand.