Is it possible to use the ! operator with in_array in PHP for conditional checks?

When using the `!` operator with `in_array` in PHP for conditional checks, the `!` operator negates the result of the `in_array` function. This means that the condition will be true if the value is not found in the array. To implement this, simply use the `!` operator before the `in_array` function in the conditional statement.

$fruits = array("apple", "banana", "orange");
$value = "grape";

if (!in_array($value, $fruits)) {
    echo $value . " is not in the array.";
} else {
    echo $value . " is in the array.";
}