Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Close directory handle
<?php closedir(?resource $dir_handle = null): void
<?php     {

        assert(null !== $this->handle);



        closedir($this->handle);



        return false;

    }