Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/07/2009, 23:50
Avatar de Ronruby
Ronruby
 
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 15 años, 9 meses
Puntos: 416
Respuesta: Sustituir texto por imagenes

Puedes usar str_replace()

Código php:
Ver original
  1. $texto = "Esto :D es un texto";
  2. $texto = str_replace(':D', '<img src="imagenes/caritafeliz.gif" />', $texto);
  3. echo $texto;