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

SublimeText3 English version
Recommended: Win version, supports code prompts!

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Dreamweaver CS6
Visual web development tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

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