in_array 함수는 배열에서 특정 값이 있는지 확인합니다.확인하려는 값이 배열의 요소로 존재하면 true를 반환하고, 그렇지 않으면 false를 반환합니다. $fruits = ['Apple', 'Orange', 'Banana', 'Grapes'];if (in_array('Banana', $fruits)) { echo 'Banana was found in the array!';} else { echo 'Banana was not found in the array.';}// Output: 'Banana was found in the array!' 구문in_array(mixed $needle, array $haystack[, bool $strict = false]): bool$needle: 필수..