How to check not in array element February 19, 2023 by Tarik Simply $os = array("Mac", "NT", "Irix", "Linux"); if (!in_array("BB", $os)) { echo "BB is not found"; }