striping \n or \r

From: Date: Wed, 15 Feb 2006 18:03:11 +0000
Subject: striping \n or \r
Groups: php.db 
Request: Send a blank email to php-db+get-41266@lists.php.net to get a copy of this message
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 (#41266) next »