file_get_contents

file_get_contents

(PHP 4 >= 4.3.0, PHP 5, PHP 7)

file_get_contentsReads entire file into a string

Description

string file_get_contents ( string $filename [, bool $use_include_path = false [, resource $context [, int $offset = 0 [, int $maxlen ]]]] )

This function is similar to file(), except that file_get_contents() returns the file in a string, starting at the specified 登录查看完整内容