I have a file named file.txt which is update by adding lines to it.
file.txt
I am reading it by this code:
$fp = fopen(\"file.txt\", \"r\"); $da
this is read last 10 line from text file
$data = array_slice(file('logs.txt'),10); foreach ($data as $line) { echo $line.""; }