Counting number of lines in a text file is easy.
Here is the code:
$file = "file.txt";
$nr_lines = count(file($file));
Now you know how to count the number of lines in a text file with PHP.
Subscribe to:
Post Comments (Atom)
Your expert in PHP and MySQL. Articles and tutorials on this website contain code examples.
No comments:
Post a Comment