$os = array("Mac", "NT", "Irix", "Linux"); if (in_array("Irix", $os)) { echo "Got Irix"; }
実行結果 Got Irix
$os = array("Mac", "NT", "Irix", "Linux");if (in_array("Irix", $os)) { echo "Got Irix";}
実行結果Got Irix