php 关于文件的函数

删除文件 unlink($filepath)

判断文件是否存在 file_exists($filepath)

文件中插入数据 file_put_contents($filepath, $str, FILE_APPEND)FILE_APPEND后面插入

获取文件内容 file_get_contents($filepath)

猜你喜欢

转载自blog.csdn.net/qq_26282869/article/details/80668857
今日推荐