PHP정규식preg_grep

preg_grep정규식

정규식과 일치하는 배열 요소만 반환합니다.

문법

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