(PHP 4 >= 4.3.0, PHP 5, PHP 7)
file_get_contents — 将整个文件读入一个字符串
说明
string
file_get_contents (
string $filename [,
bool $use_include_path = false [,
resource $context [,
int $offset = -1 [,
int $maxlen ]]]] )
file_get_contents() 函数是用来将文件的内容读入到一个字符串中的首选方法。如果操作系统支持还会使用内存映射技术来增强性能。
返回值
The function returns the read data 或者在失败时返回 FALSE.