public function each($callback)
    {
        for ($i = 0; $i < $this->archive->numFiles; ++$i) {
            //skip if folder
            $stats = $this->archive->statIndex($i);
            if ($stats['size'] === 0 && $stats['crc'] === 0) {
                continue;
            }
            call_user_func_array($callback, [
                'file' => $this->archive->getNameIndex($i),
                'stats' => $this->archive->statIndex($i)
            ]);
        }
    }
public function each($callback)
    {
        for ($i = 0; $i < $this->archive->numFiles; ++$i) {
            //skip if folder
            $stats = $this->archive->statIndex($i);
            if ($stats['size'] === 0 && $stats['crc'] === 0) {
                continue;
            }
            call_user_func_array($callback, [
                'file' => $this->archive->getNameIndex($i),
                'stats' => $this->archive->statIndex($i)
            ]);
        }
    }
public function each ( $ callback ) { for ( $ i = 0 ; $ i < $ this -> archive -> numFiles ; ++ $ i ) { //skip if folder $ stats = $ this -> archive -> statIndex ( $ i ) ; if ( $ stats [ 'size' ] === 0 && $ stats [ 'crc' ] === 0 ) { continue ; } call_user_func_array ( $ callback , [ 'file' => $ this -> archive -> getNameIndex ( $ i ) , 'stats' => $ this -> archive -> statIndex ( $ i ) ] ) ; } }
Will loop over every item in the archive and will execute the callback on them
Will provide the filename for every item

@param $callback
Will loop over every item in the archive and will execute the callback on them Will provide the filename for every item