if ($_SESSION['diario'] == 1){ $telefono = strtr($array['avso_es_fono'],$fono); } else { $telefono = strtr($_SESSION['diario'],$fono2); }