PHP – file() lines

$lines = file('all-words.txt');
foreach ($lines as $line_num => $line) {
  echo "Line number ".$line_num;
}
Tags:
0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments