PHP 手冊
上一頁 |  | 下一頁

# stream_get_contents

(PHP 5)

stream_get_contents -- Reads remainder of a stream into a string

## Description

string stream_get_contents ( resource handle [, int maxlength])

Identical to file_get_contents(), except that stream_get_contents() operates on an already open file resource and returns the remaining contents, up to maxlength bytes, in a string.

> 備注:這個函數可安全的使用於二進位。

See also fgets(), fread(), and fpassthru().

上一頁 | 最開頭 | 下一頁
stream_filter_register | 上一層 | stream_get_filters