Lines inside a file below"; $x = 1; foreach($f as $line) { echo "$line"; echo ""; echo "Line number: " . $x); $x +=1; } ?>