\ [\] * * Create phar archive \ using entries from \ that * optionally match \. */ if ($argc < 3) { echo << 3) { $dir = new RegexIterator($dir, '/'.$argv[3].'/'); } $phar->begin(); foreach($dir as $file) { echo "$file\n"; copy($file, "phar://newphar/$file"); } $phar->commit(); ?>