What is a better way of doing the following: $Actions_allowed = array('browse','print','search','edit','login', 'rss', 'atom'); if (! in_array($action, $Actions_allowed)) { # Do something. } Hagan