PHP 8.1.28 Released!

Directory::read

(PHP 4, PHP 5, PHP 7, PHP 8)

Directory::readПолучает элемент из дескриптора каталога

Описание

public Directory::read(): string|false

Список изменений

Версия Описание
8.0.0 Параметры не принимаются. Раньше в качестве аргумента можно было передать дескриптор каталога.
add a note

User Contributed Notes 1 note

up
0
cjcxxh at 163 dot com
1 year ago
use
while ($row=$dir->read()){
// your code
}
to get a list of all files and directories. You can definitely use the "for" and other loops.
To Top