downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

streamWrapper::stream_flush> <streamWrapper::stream_close
[edit] Last updated: Fri, 23 Mar 2012

view this page in

streamWrapper::stream_eof

(PHP 4 >= 4.3.2, PHP 5)

streamWrapper::stream_eofTests for end-of-file on a file pointer

Opis

public bool streamWrapper::stream_eof ( void )

This method is called in response to feof().

Parametry

Ta funkcja nie posiada parametrów.

Zwracane wartości

Should return TRUE if the read/write position is at the end of the stream and if no more data is available to be read, or FALSE otherwise.

Notatki

Ostrzeżenie

When reading the whole file (for example, with file_get_contents()), PHP will call streamWrapper::stream_read() followed by streamWrapper::stream_eof() in a loop but as long as streamWrapper::stream_read() returns a non-empty string, the return value of streamWrapper::stream_eof() is ignored.

Zobacz też:

  • feof() - Sprawdza czy wskaźnik pliku jest na końcu pliku (EOF)



add a note add a note User Contributed Notes streamWrapper::stream_eof
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites