|
streamWrapper::stream_read(PHP 4 >= 4.3.2, PHP 5) streamWrapper::stream_read — Read from stream Описание
public string streamWrapper::stream_read
( int $count
)
This method is called in response to fread() and fgets().
Список параметров
Возвращаемые значенияIf there are less than count bytes available, return as many as are available. If no more data is available, return either FALSE or an empty string. ОшибкиВызывает ошибку уровня E_WARNING, если вызов к этому методу не удался (например, не реализован).
Примечания
Внимание
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. |
|