closedir

PHP 4, PHP 5, PHP 7, PHP 8
closedir - Close directory handle
Manual
Code Examples

closedir( [resource|null$dir_handle = null] ): void

Closes the directory stream indicated by dir_handle. The stream must have previously been opened by opendir.

Parameters

dir_handle

The directory handle resource previously opened with opendir. If the directory handle is not specified, the last link opened by opendir is assumed.

Return Values

No value is returned.

Example of closedir

Show all examples for closedir

PHP Version:


Function closedir:

Directories Functions

Most used PHP functions