PHP 4, PHP 5, PHP 7, PHP 8
closedir - Close directory handle
closedir( [resource|null$dir_handle = null] ): void
Closes the directory stream indicated by dir_handle. The stream must have previously been opened by opendir.
The directory handle resource previously opened with opendir. If the directory handle is not specified, the last link opened by opendir is assumed.
No value is returned.
Show all examples for closedir