preg_quote
preg_grep
strlen
Return array entries that match the pattern.
preg_grep(string $pattern, array $array): array