php dir 函数实例教程
伪面向对象机制的阅读dir。给定的dir是开。两个属性可一旦dir已经拉开。在处理财产可以用来与其他dir功能,如readdir ( ) , rewinddir ( )和closedir ( )
dir-返回的一个实例Directory类 ,
描述
dir
dir(
字符串$路径;
资源$处理;
字符串改为(无效)
无效倒带(无效)
无效的密切(无效)
)
伪面向对象机制的阅读dir。给定的dir是开。两个属性可一旦dir已经拉开。在处理财产可以用来与其他dir功能,如readdir ( ) , rewinddir ( )和closedir ( ) 。路径属性设置为路径的dir开幕。有三种方法:阅读,倒带和密切。
实例
例如# dir( )的例子
请注意时尚,其中dir: :阅读( )的返回值是检查在下面的例子。我们是否明确测试的返回值是相同的(相当于和同一类型-见比较运算符的更多信息)虚假的,因为否则的话,任何dir项的名字计算为false将停止循环。
$d = dir("/etc/php5");
echo "Handle: " . $d->handle . "n";
echo "Path: " . $d->path . "n";
while (false !== ($entry = $d->read())) {
echo $entry."n";
}
$d->close();
?>

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Atom editor mac version download
The most popular open source editor

Dreamweaver Mac version
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SublimeText3 Mac version
God-level code editing software (SublimeText3)
