Answers for "read each line in a file 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 each line in a file php"

Browse Popular Code Answers by Language