Ver Mensaje Individual
  #7 (permalink)  
Antiguo 18/03/2010, 10:37
Hidek1
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 14 años, 6 meses
Puntos: 334
Respuesta: Filtrar contenido de un txt

prueba con esto haber si te sirve...

Código PHP:
Ver original
  1. $archivo = file_get_contents("archivo.txt");
  2. $archivo = preg_replace('#[\n\r](Tel|Fax|E-mail|Web Site):([^\n]*)#', '', $archivo);
  3. $array_archivo = preg_split('#([\n\r]{2,})#', $archivo);
  4. print_r($array_archivo);

y acerca del manual, esta lleno en internet.. manual de PCRE
__________________
More about me...
~ @rhyudek1
~ Github