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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

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

SublimeText3 Linux new version
SublimeText3 Linux latest version

Atom editor mac version download
The most popular open source editor

SublimeText3 Chinese version
Chinese version, very easy to use