php how to get a single line from a file code example
Example: read line by line php
<?php
$file = new SplFileObject("file.txt");
while(!$file->eof())
{
echo $file->fgets()."<br/>";
}
$file = null;
?>
<?php
$file = new SplFileObject("file.txt");
while(!$file->eof())
{
echo $file->fgets()."<br/>";
}
$file = null;
?>