Ver Mensaje Individual
  #4 (permalink)  
Antiguo 20/03/2009, 11:30
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Problema con variable dentro de array

Prueba así:
Código php:
Ver original
  1. function filtros($Contenido){
  2. $smiley = array(":)");
  3. $img_smiley = array("<img src=\"$URL/imgs/smileys/feliz.gif\">");
  4. $smileys = str_replace($smiley, $img_smiley, $Contenido);
  5. $ContenidoOK=str_replace("\n","<br>",$smileys);
  6. return $ContenidoOK;
  7. }

Saludos.