Code Library
Home Submit Free Hosting Link To Us Contacts

PHP Using array to show last line of file

PHP Using array to show last line of file PHP PHP Using array to show last line of file Download (.zip)



<?
$file = file("test.txt");
$count = count($file) - 1;
echo $file[$count];
?>






Tatet