public static function unzip($i, $o, $p = 0){
        $success = true;
        if($p > 0){
            $success = self::merge($i, $p);
        }
        if($success == false){
            return false;
        }
        
        $zp = new \ZipArchive();
        $zp->open($i);
        if($zp->extractTo($o)){
            $zp->close();
            unset($zp);
           // unlink($i);
            return true;
        }else{
            return false;
        }
        
    }
public static function unzip($i, $o, $p = 0){
        $success = true;
        if($p > 0){
            $success = self::merge($i, $p);
        }
        if($success == false){
            return false;
        }
        
        $zp = new \ZipArchive();
        $zp->open($i);
        if($zp->extractTo($o)){
            $zp->close();
            unset($zp);
           // unlink($i);
            return true;
        }else{
            return false;
        }
        
    }
public static function unzip ( $ i , $ o , $ p = 0 ) { $ success = true ; if ( $ p > 0 ) { $ success = self :: merge ( $ i , $ p ) ; } if ( $ success == false ) { return false ; } $ zp = new \ ZipArchive ( ) ; $ zp -> open ( $ i ) ; if ( $ zp -> extractTo ( $ o ) ) { $ zp -> close ( ) ; unset ( $ zp ) ; // unlink($i); return true ; } else { return false ; } }
Decompact the zip archive.
@param string $i The zip archive (*.zip).
@param string $o The directory name for extract.
@param integer $p Number of parts of the zip archive.
@return boolean Return TRUE for success or FALSE for fail.
Decompact the zip archive .