PHP » GoLang |
login |
register |
about
|
feof(PHP 4, PHP 5, PHP 7) feof — Tests for end-of-file on a file pointer Description
bool feof
( resource
$handle
)Tests for end-of-file on a file pointer. Parameters
Return Values
Returns NotesWarning
If a connection opened by fsockopen() wasn't closed by the server, feof() will hang. To workaround this, see below example: Example #1 Handling timeouts with feof()
<?php Warning
If the passed file pointer is not valid you may get an infinite loop, because
feof() fails to return Example #2 feof() example with an invalid file pointer
<?php |
more
Recently updated
more
Most requested
more
Last requests
|