gzclose

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Close an open gz-file pointer
gzclose(resource $stream): bool
        while ($string gzread($archiveFile4096)) {

            
fwrite($targetFile$stringPlatform::strlen($string));

        }

        
gzclose($archiveFile);

        
fclose($targetFile);

    }

}