Hey folks,
I tried to use fgets() to read a file line by line using this code..
its read the file from the first line till the last one
but I wanna read the file from the last line till the first one
how can I do that please ?
I tried to use fgets() to read a file line by line using this code..
Code:
while(!feof($txt)){
echo fgets($txt) . "<br>";
}
fclose($txt);
its read the file from the first line till the last one
but I wanna read the file from the last line till the first one
how can I do that please ?