# How can I extract a specific folder (single) folder from a Zipped archive

16 views
edited Oct 7

I want to extract a specific folder, instead of all folders from an archive using PHP's native ZipArchive class.

<?php
\$zip = new ZipArchive();

// Code to extract specific folder using ZipArchive class below.