PHP unlink() 函数

高洛峰
Release: 2023-03-05 15:54:02
Original
3034 people have browsed it

定义和用法

unlink() 函数删除文件。

若成功,则返回 true,失败则返回 false。

语法

unlink(filename,context)
Copy after login
Copy after login
参数描述
filename必需。规定要删除的文件。
context可选。规定文件句柄的环境。Context 是可修改流的行为的一套选项。

提示和注释

注释:对 context 的支持是 PHP 5.0.0 添加的。

例子

Copy after login
Copy after login

                                               

定义和用法

unlink() 函数删除文件。

若成功,则返回 true,失败则返回 false。

语法

unlink(filename,context)
Copy after login
Copy after login
参数描述
filename必需。规定要删除的文件。
context可选。规定文件句柄的环境。Context 是可修改流的行为的一套选项。

提示和注释

注释:对 context 的支持是 PHP 5.0.0 添加的。

例子

Copy after login
Copy after login

更多PHP unlink() 函数 相关文章请关注PHP中文网!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!