Supported Versions: PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8
Filters elements of an array using a callback function
<?php array_filter(array $array, ?callable $callback = null, int $mode = 0): array
<?php         $visibility = $config->get(Config::OPTION_DIRECTORY_VISIBILITY);

        $archive = $this->zipArchiveProvider->createZipArchive();

        $prefixedDirname = $this->pathPrefixer->prefixDirectoryPath($dirname);

        $parts = array_filter(explode('/', trim($prefixedDirname, '/')));

        $dirPath = '/';



        foreach ($parts as $part) {