<?php array_search(mixed $needle, array $haystack, bool $strict = false): int|string|false
<?php return isset($paths[$glob]) ? array($glob => $paths[$glob]) : array(); } $key = array_search($glob, $paths); return false !== $key ? array($key => $glob) : array(); }