PHP ZipArchive extractTo() Function
The ZipArchive::extractTo() function is an inbuilt function in PHP that is used to extract the zip archive content in a folder. Syntax: bool ZipArchive::extractTo( string $pathto, array|string|null $files = null)Parameters: This function accepts two parameters that are described below: $pathto: This