我有一个文本文件,我想每天从中读取一个新行,如何每天自动更新开始和结束值?
$start = 1; // array indexes are starting with zero
$end = 4; // array indexes are starting with zero
$lines = file('test.txt'); // get lines of file as an array
for($i = $start; $i <= $end && $i < count($lines); $i++) {
echo $lines[$i];
}
慕虎7371278