PHP – file() lines

$lines = file('all-words.txt');
foreach ($lines as $line_num => $line) {
  echo "Line number ".$line_num;
}
Tags:

Leave a Reply

Your email address will not be published.