Ver Mensaje Individual
  #4 (permalink)  
Antiguo 08/04/2008, 08:55
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 20 años, 4 meses
Puntos: 2135
Re: Insertar un Tag HTML dentro de una cadena HTML dada una posición

Prueba así:
Código PHP:
function div_into_string($str_div,$str, $n) {
       
$pre = substr( $str, 0, $n );
       
$post = substr( $str, $n + 1 );

       return 
$str . $str_div . $post;
} 
Saludos.