PHP » PYTHON |
login |
register |
about
|
f.readline() f.readline(length) fgets(PHP 4, PHP 5) fgets — Gets line from file pointer Description
string fgets
( resource $handle
[, int $length
] )
Gets a line from file pointer. Parameters
Return ValuesReturns a string of up to length - 1 bytes read from the file pointed to by handle . If an error occurs, returns FALSE. Changelog
Examples
Example #1 Reading a file line by line
<?php
Notes
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|