PHP rmdir() 函数
PHP 教程
· 2019-01-25 15:29:48
定义和用法
rmdir() 函数删除空的目录。
如果成功,该函数返回 TRUE。如果失败,则返回 FALSE。
语法
rmdir(dir,context)
| 参数 | 描述 |
|---|---|
| dir | 必需。规定要删除的目录。 |
| context | 可选。规定文件句柄的环境。context 是一套可以修改流的行为的选项。 |
实例
<?php
$path = "images";
if(!rmdir($path))
{
echo ("Could not remove $path");
}
?>
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
How to Solve It
Zbigniew Michalewicz、David B. Fogel / Springer / 2004-03-01 / USD 59.95
This book is the only source that provides comprehensive, current, and detailed information on problem solving using modern heuristics. It covers classic methods of optimization, including dynamic pro......一起来看看 《How to Solve It》 这本书的介绍吧!
URL 编码/解码
URL 编码/解码
RGB CMYK 转换工具
RGB CMYK 互转工具