PHP fclose() 函数

PHP 教程 · 2019-01-24 19:27:58

定义和用法

fclose() 函数关闭打开的文件。

该函数如果成功则返回 TRUE,如果失败则返回 FALSE。

语法


fclose(file)


参数 描述
file 必需。规定要关闭的文件。

实例


<?php
$file = fopen("test.txt","r");
//some code to be executed
fclose($file);
?>


点击查看所有 PHP 教程 文章: https://www.codercto.com/courses/l/5.html

查看所有标签

Using Google App Engine

Using Google App Engine

Charles Severance / O'Reilly Media / 2009-5-23 / USD 29.99

With this book, you can build exciting, scalable web applications quickly and confidently, using Google App Engine - even if you have little or no experience in programming or web development. App Eng......一起来看看 《Using Google App Engine》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

随机密码生成器
随机密码生成器

多种字符组合密码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码