Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/01/2010, 17:56
Yadel
 
Fecha de Ingreso: diciembre-2007
Mensajes: 41
Antigüedad: 16 años, 4 meses
Puntos: 0
mostrar resultados de preg_match_all

Saludos Amigos, quisiera que me revisaran este codigo, que creo q deberia imprimirme los resultados.

Código PHP:
$contenido='
  <td class="row2"
  align="center" valign="middle" height="50" nowrap="nowrap"><span
  class="genmed subdatos">Sab Ene 20, 2007 10:07 pm<br />Ardilla Roja_blog <a
    href="viewtopic.php?p=235369&amp;sid=ad53bb1802154d60f74d42e240698e47#235369"><img
    src="templates/smartBlue/images/icon_latest_reply.gif" border="0"

    alt="Ver último mensaje" title="Ver último mensaje"
    /></a></span> </td>
------------------------------------------
<td class="row2"
  align="center" valign="middle" height="50" nowrap="nowrap"><span
  class="genmed subdatos">Sab Ene 20, 2007 10:07 pm<br />Ardilla Roja_blog22 <a
    href="viewtopic.php?p=235369&amp;sid=ad53bb1802154d60f74d42e240698e47#235369"><img
    src="templates/smartBlue/images/icon_latest_reply.gif" border="0"

    alt="Ver último mensaje" title="Ver último mensaje"
    /></a></span> </td>
'
;

    
preg_match_all('/(?:<br \/>)(?:<a href="profile\.php.*>)?(.+)(?:<\/a>)?(?:\ <a href="viewtopic\.php.*"><img src="templates\/smartBlue\/images\/icon_latest_reply\.gif")/'$contenido$matches);
    
     
    
    foreach(
$matches as $res){
    
    echo 
$res;
    
    } 

solo imprime:
Código:
ArrayArray
me gustaria que lo probaran y me reestructuraran el script.