file_get_contents

file_get_contents — 将整个文件读入一个字符串

file_put_contents    将整个 函数把一个字符串写入文件中

原文地址:https://www.cnblogs.com/tianbo16/p/7232390.html