PHP.nl

closedir

closedir

Close directory handle

void **closedir**  $dir_handle

Closes the directory stream indicated by . dir_handle

dir_handle A directory handle previously opened with . If is null the last handle opened using will be used. resource``opendir``dir_handle``opendir

return.void

For a complete example refer to the documentation. opendir

opendir``readdir``rewinddir``dir``is_dir``glob``scandir