preg_filter()
preg_match() :문자열에서 일치 항목을 찾았는지 여부를 반환
$str = "visit w3schools"; $pattern = "/w3schools/i"; echo preg_match($pattern,$str);