Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/03/2005, 21:37
Avatar de jesusbet
jesusbet
(Desactivado)
 
Fecha de Ingreso: mayo-2004
Ubicación: Monterrey, MX
Mensajes: 2.667
Antigüedad: 19 años, 11 meses
Puntos: 2
no funca el str_replace un una función

Tengo la siguiente función:
Código PHP:
function formato_texto($texto) {
    
$texto str_replace('<br />'''$texto);
    
$texto str_replace('<p>'"\n"$texto);
    
$texto str_replace('</p>'''$texto);
    echo 
$text;

y no funca al llamarla de la forma:
Código PHP:
formato_texto("esta es un
texto
multi
linea

bla bla bla"
); 


agradezco su ayuda...