Supported Versions: PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8
Find pathnames matching a pattern
<?php glob(string $pattern, int $flags = 0): array|false
<?php <?php



$bestDirFound = null;

$dirs = glob(__DIR__.'/../vendor/bin/.phpunit/phpunit-*', GLOB_ONLYDIR);

natsort($dirs);



foreach (array_reverse($dirs) as $dir) {
<?php         $composer = $this->getComposer();

        $binDir = $composer->getConfig()->get('bin-dir');

        if ($input->getOption('list') || !$input->getArgument('binary')) {

            $bins = glob($binDir . '/*');

            $bins = array_merge($bins, array_map(function ($e) {

                return "$e (local)";

            }, $composer->getPackage()->getBinaries()));
<?php         return array_map(function ($val) {

            return rtrim(str_replace(DIRECTORY_SEPARATOR, '/', $val), '/');

        }, glob($this->url, $flags));

    }

}