Tema: Foreach
Ver Mensaje Individual
  #8 (permalink)  
Antiguo 10/09/2013, 02:20
XD2XD2
 
Fecha de Ingreso: diciembre-2012
Mensajes: 223
Antigüedad: 11 años, 4 meses
Puntos: 2
Respuesta: Foreach

Código PHP:
Ver original
  1. $contiene = false;
  2.  foreach(){
  3.     if(condicion){
  4.         $contiene = true;
  5.     }
  6.  }
  7.  
  8. if($contiene == true){
  9.  
  10. }else{
  11.  
  12. }

¿Asin seria no?