
01/02/2006, 06:24
|
 | | | Fecha de Ingreso: julio-2005 Ubicación: Cucuta / Colombia
Mensajes: 493
Antigüedad: 19 años, 8 meses Puntos: 1 | |
amigo necesito muestres el ejemplo con no solo 1 usuario sino muestres mas osea dices que contiene varia stablas iguales, no se exactamente son tablas iguales o posee otras filas o posee otras columnas Código PHP: <?php function sacar($TheStr, $sLeft, $sRight){ $pleft = strpos($TheStr, $sLeft, 0); if ($pleft !== false){ $pright = strpos($TheStr, $sRight, $pleft + strlen($sLeft)); If ($pright !== false) { return (substr($TheStr, $pleft + strlen($sLeft), ($pright - ($pleft + strlen($sLeft))))); } } return ''; }
$html=' <TD vAlign=top> <TABLE cellSpacing=0 cellPadding=1 width="100%" border=0> <TBODY> <TR> <TD bgColor=#cccccc> <TABLE cellSpacing=0 cellPadding=1 width="100%" border=0> <TBODY> <TR> <TD bgColor=#0000aa><A href="aca una direccion web que no puedo mostrarpor ser nuevo" target=NEW><FONT face=Arial color=yellow size=1>12:00am - cp_melissa</A><BR><FONT face=Arial color=white size=1>Jump: 2506107<BR>Format: 1 vs 1<BR>$25,L,Finished<BR><FONT color=#3fff5e><B>[email protected]</B></FONT><BR>Location: Bolas Rapidas<BR>None</FONT></FONT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>< tr>';
$datos=explode('<BR>',$html); $final[]=sacar($datos[0],'1>','</'); $final[]=substr($datos[1],strpos($datos[1],':')+1); $final[]=substr($datos[2],strpos($datos[2],':')+1); $final[]=$datos[3]; $final[]=sacar($datos[4],'<B>','</B>'); $final[]=substr($datos[5],strpos($datos[5],':')+1); print_r($final); ?>
Última edición por dopon; 01/02/2006 a las 06:57 |