Ver Mensaje Individual
  #3 (permalink)  
Antiguo 15/05/2015, 13:44
chivacker
 
Fecha de Ingreso: septiembre-2013
Ubicación: Madrid
Mensajes: 59
Antigüedad: 10 años, 6 meses
Puntos: 6
Respuesta: Comparar dos arreglos dinamicos

Si es lo que he entendido te debería valer con:
Código PHP:
Ver original
  1. foreach($matrizB as $llaveA => $valorA){
  2.      foreach($matrizA as $llaveB => $valorB){
  3.            if($valorA != $valorB){
  4.                $matrizB[$llaveB] = 0;
  5.             }
  6.      }
  7. }