Ver Mensaje Individual
  #4 (permalink)  
Antiguo 23/06/2010, 09:00
Hidek1
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 14 años, 6 meses
Puntos: 334
www.php.net/heredoc

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[1][2];

ahi si deberia funcionar.. se me habia ido el orden que tenia el array ..
saludos!
__________________
More about me...
~ @rhyudek1
~ Github

Última edición por GatorV; 24/06/2010 a las 12:02