PHPRegexpreg_grep

Return array entries that match the pattern.

Syntax

preg_grep(string $pattern, array $array): array