\n's

From: Date: Tue, 30 Oct 2001 01:30:25 +0000
Subject: \n's
Groups: php.general 
Request: Send a blank email to php-general+get-72800@lists.php.net to get a copy of this message
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

« previous php.general (#72800) next »