Answers for "php read line array"

PHP
0

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
0

read file and convert each line in array php

$lines = file($filename, FILE_IGNORE_NEW_LINES);
Posted by: Guest on October-06-2020

Browse Popular Code Answers by Language