Ver Mensaje Individual
  #8 (permalink)  
Antiguo 27/09/2011, 07:49
opzina
 
Fecha de Ingreso: marzo-2008
Mensajes: 1.020
Antigüedad: 16 años, 1 mes
Puntos: 21
Respuesta: (Consulta) Propiedad tipo array y recorrerlo

Ahora di con esta soluciòn:

Código PHP:
Ver original
  1. if (in_array($this->extension($file), $this->allows)) {
  2.             return $this->correcto;
  3.         } else {
  4.             return $this->error;
  5.         }
__________________
_