![]() |
New Line in PHP
Please see the code below first.
Code:
NaimishYour Website is very nice. JohnI will visit your website now. Now What I want to do is, the output should be like this, Naimish Your Website is very nice. John I Will visit your website now. How can I apply code for a new line in below code ? Code:
|
Re: New Line in PHP
Use <br /> if you use an HTML output
|
Re: New Line in PHP
Code:
<html dir="ltr"> |
Re: New Line in PHP
Code:
fputs($file, "$name $email"); |
Re: New Line in PHP
Quote:
|
Re: New Line in PHP
Code:
<br /> |
Re: New Line in PHP
Thanks for this post. it is very helpful.
|
Re: New Line in PHP
stranger that <br /> is working in php too.
|
Re: New Line in PHP
yeah we can use <br/> in php. just like html ;)
|
Re: New Line in PHP
You may also use this very handy PHP function nl2br http://us3.php.net/manual/en/function.nl2br.php
|
| All times are GMT +5.5. The time now is 12:21. |