Directory::read

(PHP 4, PHP 5, PHP 7)

Directory::readRead entry from directory handle

Descrierea

public Directory::read ( resource $dir_handle = ? ) : string

Same as readdir(), only dir_handle defaults to $this->handle.

add a note add a note

User Contributed Notes 1 note

up
1
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