Ver Mensaje Individual
  #7 (permalink)  
Antiguo 19/06/2009, 13:10
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: subrayar condicdencias

Solo te dije la diferencia entre una y la otra, no te dije que no iba a funcionar para tu caso, ¿acaso intentaste?

Código php:
Ver original
  1. function highlight_text($text, $word) {
  2.   $text = str_ireplace($word, "<span class=\"highlight\">$word</span>", $text);
  3.   return $text;
  4. }