Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/12/2017, 11:16
Avatar de xfxstudios
xfxstudios
 
Fecha de Ingreso: junio-2015
Ubicación: Valencia - Venezuela
Mensajes: 2.448
Antigüedad: 8 años, 10 meses
Puntos: 263
Respuesta: error en array

Debes hacer la busqueda en el array de manera correcta
Código PHP:
Ver original
  1. $idSec = '7';  
  2.  
  3. $grupos = array('7', '701', '702', '703', '704', '705', '706');
  4.  
  5.  
  6. if(in_array($idSec,$grupos)){
  7. echo 'El id '.$idSec.' si Existe';
  8. }else{
  9. echo 'sin valor';
  10. }

MUESTRA
__________________
[email protected]
HITCEL