One for all,all for one.
2014年11月18日 星期二
PHP count file lines
$file = "/tmp/somefile.txt"; $lines = count(file($file)); echo "There are $lines lines in $file";
References :
Count the number of lines in a text file - Totally PHP
沒有留言:
張貼留言
‹
›
首頁
查看網路版
沒有留言:
張貼留言