Ver Mensaje Individual
  #3 (permalink)  
Antiguo 28/06/2011, 12:11
Avatar de truman_truman
truman_truman
 
Fecha de Ingreso: febrero-2010
Ubicación: /home/user
Mensajes: 1.341
Antigüedad: 14 años, 2 meses
Puntos: 177
Respuesta: Problema con arrays

probá asi:
Código PHP:
Ver original
  1. $nuevoarray = array();
  2. for ($row = 0; $row < count($arrayViejo); $row++) {
  3.     if(strstr($arrayViejo[$row],"2011"))
  4.     {
  5.         $nuevoarray[] = str_replace("2011","",$arrayViejo[$row]);
  6.     }
  7. }
__________________
la la la