Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/03/2006, 10:51
Avatar de CHILENOCES
CHILENOCES
 
Fecha de Ingreso: octubre-2001
Ubicación: Mmm paseando por la vida
Mensajes: 491
Antigüedad: 22 años, 6 meses
Puntos: 0
Necesito obtener valores delimitados con <!--etiqueta-->

Hola,
necesito obtener los resultados de un codigo html dentro de las etiquetas
<!--inicioimpresion--> y <!--finimpresion-->

tengo este codigo:
$startingpoint = "<!--inicioimpresion-->";
$endingpoint = "<!--finimpresion-->";

$start= strpos($value, "$startingpoint");
$finish= strpos($value, "$endingpoint");
$length= $finish-$start;
$value=substr($value, $start, $length);

y luego hago un echo a $value pero no me resulta no me muestra nada.

Espero su ayuda,
muchas gracias y saludos.
__________________
ChilenoCesar Looking for something new...