protected function extractZip($srcPath, $extractToDir)
    {
        $zip = new ZipArchive();
        $r = $zip->open($srcPath);
        if($r) {
            $zip->extractTo($extractToDir);
            $zip->close();             
        }        
    }
protected function extractZip($srcPath, $extractToDir)
    {
        $zip = new ZipArchive();
        $r = $zip->open($srcPath);
        if($r) {
            $zip->extractTo($extractToDir);
            $zip->close();             
        }        
    }
protected function extractZip ( $ srcPath , $ extractToDir ) { $ zip = new ZipArchive ( ) ; $ r = $ zip -> open ( $ srcPath ) ; if ( $ r ) { $ zip -> extractTo ( $ extractToDir ) ; $ zip -> close ( ) ; } }
Use PHP's ZipArchive to extract out the data
Use PHP s ZipArchive to extract out the data