PHP » GoLang |
login |
register |
about
|
GoLang SplFileObject::fgets
request it (330)
GoLang replacement for PHP's SplFileObject::fgets
[edit | history]
SplFileObject::fgets(PHP 5 >= 5.1.0, PHP 7) SplFileObject::fgets — Gets line from file Description
public string SplFileObject::fgets
( void
)
Gets a line from the file. ParametersThis function has no parameters. Return Values
Returns a string containing the next line from the file, or Errors/ExceptionsThrows a RuntimeException if the file cannot be read. Examples
Example #1 SplFileObject::fgets() example This example simply outputs the contents of file.txt line-by-line.
<?php See Also
|
more
Recently updated
more
Most requested
more
Last requests
|