Ver Mensaje Individual
  #4 (permalink)  
Antiguo 15/05/2010, 18:49
Avatar de spider_boy
spider_boy
 
Fecha de Ingreso: diciembre-2003
Ubicación: Chile
Mensajes: 1.855
Antigüedad: 20 años, 4 meses
Puntos: 89
Respuesta: <nobr> y nl2br();

Código PHP:
Ver original
  1. $var = "Un par de <br /> afuera, [nobr] y un par de <br /><br> adentro [/nobr]un <br> por ahí...";
  2. $func = "str_replace(array('<br />','<br>'),'','$1')";
  3. echo preg_replace("/\[nobr\](.*?)\[\/nobr\]/e", $func, $var);
__________________
Nunca te olvidaré mi negra hermosa. Te extraño demasiado.