$Sec = array( "Select", "Update" );foreach( $Sec as $value ){if( in_array($value, $_GET) ){// redirect somewhere}}