Re: striping \n or \r

From: Date: Wed, 15 Feb 2006 18:04:29 +0000
Subject: Re: striping \n or \r
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-41267@lists.php.net to get a copy of this message
Use double quotes with \n and \r. On Wednesday 15 February 2006 10:03 am, nikos gatsis wrote: > Hello list > > Does anybody knows how to strip new lines (\n) or \r from a string? > I try > $lead=str_replace('(0x0D)',' ',str_replace('(0x0A)',' > ',$lead)); > > or > $lead=str_replace('\n',' ',str_replace('\r',' > ',$lead)); > > with no results > > Thank you > Nikos

« previous php.db (#41267) next »