Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/06/2010, 08:16
Hidek1
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 14 años, 6 meses
Puntos: 334
Respuesta: extraer todos los textos q esten entre un mismo tag

extraer_string() <-- ?

esa función la hiciste tu ?

bueno en realidad es simple

Código PHP:
Ver original
  1. $string = <<<EOL
  2. <h1>Titulo1</h1>
  3. <h1>Titulo 2</h1>
  4. <h1>Titulo 3</h1>
  5. <h1>Titulo 4</h1>
  6. <h1>Titulo 5</h1>
  7. EOL;
  8. preg_match_all('%<h1>(.*?)</h1>%i', $string, $matches);
  9. echo $matches[2];

no lo he provado.. pero en teoria deberia funcionar :P

saludos!
__________________
More about me...
~ @rhyudek1
~ Github