Menu
[code]
$filename = “refs.txt”;
$lines = array();
$file = fopen($filename, “r”);
while(!feof($file)) {
//read file line by line into a new array element
$lines[] = fgets($file, 4096);
}
fclose ($file);
$result = array_reverse($lines);
echo “<BR><br> $lines[0] <br> $lines[1] <BR> $lines[2] <BR> $lines[3] <BR> $lines[4] <BR> $lines[5]”;
ok the last line shows the fisrt 5 lines of my text file i need to reverse it to show the last lines i looked at array_Reverse but it just confuseed me?