Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

closedir

Description

Close directory handle

Syntax

closedir(?resource $dir_handle = null): void

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

No value is returned.

Examples

1 · void

<?

$directory = "/";

if(opendir($directory))
{
    closedir();
}

?>

2 · dir_handle

<?

$directory = "/";

if($dir_handle = opendir($directory))
{
    closedir($dir_handle);
}

echo $dir_handle;

?>
Resource id #3
HomeMenu