I\'m trying to read a specific line from a text file using php. Here\'s the text file:
foo foo2
How would I get the content of the seco
$myFile = "4-21-11.txt"; $fh = fopen($myFile, 'r'); while(!feof($fh)) { $data[] = fgets($fh); //Do whatever you want with the data in here //This feeds the file into an array line by line } fclose($fh);