Answers for "read text file line by line on php"

PHP
1

read line by line php

<?php
	
	$file = new SplFileObject("file.txt");

	while(!$file->eof())
	  {
		echo $file->fgets()."<br/>";
	  }

	$file = null;

?>
Posted by: Guest on December-25-2020

Code answers related to "read text file line by line on php"

Browse Popular Code Answers by Language