phpday 2027 - Call for Papers

Directory::rewind

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

Directory::rewind — Rewind directory handle

Description

public function Directory::rewind(): void

Changelog

Version Description
8.0.0 No parameter is accepted. Previously, a directory handle could be passed as argument.

User Contributed Notes 1 note

up
-2
cjcxxh at 163 dot com
3 years ago
use this method and then if you try to use read (), you will start from the 1st item in the directory object
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top