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://codercto.com/courses/l/5.html

查看所有标签

Computing Patterns in Strings

Computing Patterns in Strings

Bill Smyth / Addison Wesley / 2003 / $ 75.00

The computation of patterns in strings is a fundamental requirement in many areas of science and information processing. The operation of a text editor, the lexical analysis of a computer program, the......一起来看看 《Computing Patterns in Strings》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具