Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/05/2009, 23:52
Avatar de abimaelrc
abimaelrc
Colaborador
 
Fecha de Ingreso: mayo-2009
Ubicación: En el planeta de Puerto Rico
Mensajes: 14.734
Antigüedad: 17 años, 4 meses
Puntos: 1517
Respuesta: Leer partes de un txt

Código PHP:
$getArray = file("texto.txt");

$firstPart = false;
foreach(
$getArray as $k => $v){
  
$explodeArray = explode(" ", $v);
  if(
$explodeArray[0] == "dia"){
    
$firstPart = true;
  }
  if(
$firstPart){
    echo 
$v;
  }
} 

Me dejas saber