How do you get the last line of a CSV file with out reading the whole file? The CSV file is tabe delimited.
---------------------------------------
---------------------------------------
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
$last_line = "";
while ( ( $line = fgets( $fp ) ) )
$last_line = $line;
<?php
$lines = file('youfilenamehere');
$last_line = $lines[count($lines)-1];
?>