Answers for "get line php"

PHP
0

readline php

<?php
 
// For input
// Hello World
$a = readline('Enter a string: ');
 
// For output
echo $a;   
?>
Posted by: Guest on April-10-2022
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

Browse Popular Code Answers by Language