fgets

PHP 4, PHP 5, PHP 7, PHP 8
fgets - Gets line from file pointer
Manual
Code Examples

Example #1 Reading a file line by line

PHP Version: