Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/09/2010, 11:23
Avatar de spider_boy
spider_boy
 
Fecha de Ingreso: diciembre-2003
Ubicación: Chile
Mensajes: 1.855
Antigüedad: 20 años, 5 meses
Puntos: 89
Respuesta: ¿como puedo agregar o reemplazar caracteres de una palabra?

Prueba esto :

Código PHP:
Ver original
  1. $str = 'imagen1.jpg';
  2. $str1 = substr($str, 0, strlen($str)-4) . '_tm' . substr($str, -4);
  3. echo $str1;

Y avisas si funciona o no.
__________________
Nunca te olvidaré mi negra hermosa. Te extraño demasiado.