Si può fre in diversi modi, eccone uno

Codice PHP:
if (!in_array($_REQUEST['tipo'], array(1,2,3))) {
  
// istruzioni da eseguire...