Easy Tutorial
❮ Func Curl_Version Php Datatypes ❯

PHP closedir() Function

PHP Directory Reference Manual

Example

Open a directory, read its contents, and then close it:

Result:


Definition and Usage

The closedir() function closes a directory handle.


Syntax

Parameter Description
dir_handle Optional. Specifies the directory handle previously opened by opendir()

Technical Details

Return Value: -
PHP Version: 4.0+
--- ---
❮ Func Curl_Version Php Datatypes ❯