Re: Quitar retornos de carro en string

From: Date: Tue, 05 Jun 2001 09:55:45 +0000
Subject: Re: Quitar retornos de carro en string
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-10901@lists.php.net to get a copy of this message
On Tue, 5 Jun 2001, Jaume Sabater wrote: Hola jaume, Prueba la función trim() ó ltrim(), según el manual quita los siguientes caracteres : "\n", "\r", "\t", "\v", "\0". de todas maneras te hago un copiar pegar del manual, trim (PHP3 , PHP4 ) trim -- Strip whitespace from the beginning and end of a string Description string trim (string str) This function strips whitespace from the start and the end of a string and returns the stripped string. The whitespace characters it currently strips are: "\n", "\r", "\t", "\v", "\0", and a plain space. > Hola > > He estado probando el ereg_replace y el str_replace, ambos con \n o \r, y > nada... parece como si los \n no pudieran ser eliminados... Porque si hago > que me lo sustituya por "|" me pone "\n|" a cada "\n", como el > nl2br()... > Porfa, decidme que no tendré que hacerme una funcion en C para solucionarlo... > _________________________DIEGO FERNANDO REYES ALEGRIAS__ | | | UNIVERSIDAD DEL VALLE | | DIRECCION ACADEMICA DE EDUCACION DESESCOLARIZADA | | TelEfono Oficina: 3182633 - 3182690 | | Celular: 496-49-91 | | E-mail: diereyes@mangle.univalle.edu.co | | diereyes27@latinmail.com | | Cali - Colombia - Sur América | |________________________________________________________|

« previous php.general.es (#10901) next »