PHP rename() 函数
PHP 教程
· 2019-01-25 14:57:38
定义和用法
rename() 函数重命名文件或目录。
如果成功,该函数返回 TRUE。如果失败,则返回 FALSE。
语法
rename(oldname,newname,context)
| 参数 | 描述 |
|---|---|
| oldname | 必需。规定要重命名的文件或目录。 |
| newname | 必需。规定文件或目录的新名称。 |
| context | 可选。规定文件句柄的环境。context 是一套可以修改流的行为的选项。 |
实例
<?php
rename("images","pictures");
?>
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
The Everything Store
Brad Stone / Little, Brown and Company / 2013-10-22 / USD 28.00
The definitive story of Amazon.com, one of the most successful companies in the world, and of its driven, brilliant founder, Jeff Bezos. Amazon.com started off delivering books through the mail. Bu......一起来看看 《The Everything Store》 这本书的介绍吧!