Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/03/2006, 06:00
Avatar de jerkan
jerkan
 
Fecha de Ingreso: septiembre-2005
Mensajes: 1.607
Antigüedad: 18 años, 7 meses
Puntos: 19
Podrías hacerlo así:
Código PHP:
function acceso($secc)
{
$seccion=array(
    
"contactar" =>array ("nivel"=>"2",),
    
"inicio" =>array ("nivel"=>"0",),
    
"identificacion" =>array ("nivel"=>"1",)
);
return isset(
$seccion[$secc]) ? $seccion[$secc]['nivel'] : -1;