Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php loop through lines of file

$contents = file("myfile.txt");
foreach($contents as $line) {
    echo $line;
}
 
PREVIOUS NEXT
Tagged: #php #loop #lines #file
ADD COMMENT
Topic
Name
2+3 =