reading a string from a file

A

Anonymous

Guest
Hi again,

I want to read some strings from a txt file. What is the best way to do this with php. fgets will get the entire line and fgetsc only gets a character...I want to read in each word as its own string....

thanks
 
$file_array = file("filename.txt");

that will read each line of the file into an array which is very convienent.
 
Back
Top