Re: \n's

From: Date: Tue, 30 Oct 2001 01:41:09 +0000
Subject: Re: \n's
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-72803@lists.php.net to get a copy of this message
On Tue, 30 Oct 2001 12:00, Justin French wrote: > Hi all, > > quick problem... I don't seem to be able to strip \n's out of a string > of text: > > i'm using: > > <? > eregi_replace("\n", "", $foo); > ?> > > I've also tried: > eregi_replace("\\n", "", $foo); and > eregi_replace("\r", "", $foo); with no luck. > > Am I missing something when using ereg on special characters? > > > Justin French What about $newfoo = eregi_replace("\n", "", $foo); -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Do radioactive cats have 18 half-lives?

« previous php.general (#72803) next »