Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/03/2006, 10:59
Avatar de claudiovega
claudiovega
 
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 23 años
Puntos: 11
Probé tu codigo y funciona, esta fue mi prueba:

Código PHP:
<?php
   $startingpoint 
= "<!--inicioimpresion-->";
   
$endingpoint = "<!--finimpresion-->";
   
$value="<!--inicioimpresion-->Hola Mundo<!--finimpresion-->";
   
$start= strpos($value, "$startingpoint");
   
$finish= strpos($value, "$endingpoint");
   
$length= $finish-$start;
   
$value=substr($value, $start, $length);
   echo 
$value;
?>