RE: [PHP] Recursive Replace

From: Date: Wed, 02 Oct 2002 11:20:19 +0000
Subject: RE: [PHP] Recursive Replace
Groups: php.general 
Request: Send a blank email to php-general+get-118578@lists.php.net to get a copy of this message
Hi Rick, > How can I combine that line of code with > str_replace() or some other replace function > in order to turn "\n" into "<br>" for each line. I think you're looking for http://www.php.net/nl2br. Specifically: for ($i = 7; $i < sizeof($info); $i+=1) echo nl2br($info[$i]); Cheers Jon

« previous php.general (#118578) next »