I am attempting to echo the bottom line only of a .csv file. I echo the file in reverse order (as shown below) but I'm not sure how to only echo the top line of this. Please note that the csv variable, constantly changing.
Here is my php:
<?php
$file = file("file.csv");
$file = array_reverse($file);
foreach($file as $f){
echo $f."<br />";
}
?>