Re: Returns..

From: Date: Fri, 19 Sep 2003 12:04:33 +0000
Subject: Re: Returns..
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-163126@lists.php.net to get a copy of this message
The space is there so it does not break some old browsers which could thing it is "BR/" tag (yes, it does not exists). Change your logic or do preg_replace(array("\r\n","\n","\r"), '<br>', $string) instead - not tested Chris Mach wrote:
Why does it put a space in there? <br /> It's screwing up my other script which displays just the first 50 words of the news article by exploding each word into an array. So /> is showing up after each break. http://www.ticatfans.com/index.php "Marek Kilimajer" <kilimajer@webglobe.sk> wrote in message news:3F6AE871.6050500@webglobe.sk...
nl2br() Chris Mach wrote:
I have a simple little script that displays news articles that are
stored in
mySQL database. However, when the script displays the data, it doesn't recognize the returns/enters. So I have to put <br><br> when ever I want a new
paragraph
to begin. How can I get my script to recognize the returns? is there any functions
for
this type of thing? Thanks


« previous php.general (#163126) next »