Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/06/2009, 19:22
Avatar de argy
argy
 
Fecha de Ingreso: octubre-2007
Ubicación: Longitud 75º Latitud 18º Sur
Mensajes: 614
Antigüedad: 16 años, 6 meses
Puntos: 18
Respuesta: comparar un elemento de un array con todos sus valores de otro array

Código :
Ver original
  1. foreach($array1 as $k=>$v)
  2. {
  3. foreach($array2 as $l=>$w)
  4. {
  5. if($v==$w)
  6. echo "$v es igual a $w";
  7. }
  8.  
  9. }
__________________
Software libre para un mundo libre.

Eventualmente en el foro.