if( ! in_array("$the_variable",$the_array) ) { exit("Sorry, but your account is not allowed to enter this file"); }