This code I was iven works but reads it the wrong order.
<?php
//file command you can open a file, and read its contents into an array.
$lines = file('file.txt');
// Count this array
$li=count($lines)-1;
$a=0;
while($a<5)
{
print $lines[$li-$a]."<br>\r";
$a++;
// don't forget to increment your counter
}
?>
How would you make the last line in thetext file be echoed last. This echos the last line first then the second last etc.