Ver Mensaje Individual
  #7 (permalink)  
Antiguo 31/01/2011, 23:05
Avatar de luisvasquez
luisvasquez
 
Fecha de Ingreso: diciembre-2003
Ubicación: Venezuela
Mensajes: 879
Antigüedad: 20 años, 5 meses
Puntos: 6
Respuesta: Problema con array cargado desde archivo

Cita:
Iniciado por JaimeSavines Ver Mensaje
Mejor usa la constante FILE_IGNORE_NEW_LINES, con eso te ahorras el trim y el ciclo
Código PHP:
Ver original
  1. $archivo_emails = file("correos.txt",FILE_IGNORE_NEW_LINES);

Excelente...probaré esta forma, porque yo lo hice "a pie".

Saludos y gracias,
Luis Vásquez