View Single Post
Old 30-06-2004, 08:45   #15 (permalink)
andymoo
Crazy Frog
 
Join Date: Jun 2004
Location: Liverpool
Posts: 42
Send a message via ICQ to andymoo Send a message via Yahoo to andymoo
$data = "blah
Blah
blah";

nl2br($data);

echo "$data";

would echo:

blah<br>blah<br>blah

easier than replacing as this fucntion converts newlines to br's

hth
  Reply With Quote