php get file content line by line code example
Example 1: php file read
<?php
echo file_get_contents("text.txt");
?>
Example 2: read line by line php
<?php
$file = new SplFileObject("file.txt");
while(!$file->eof())
{
echo $file->fgets()."<br/>";
}
$file = null;
?>