By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,521 Members | 1,492 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,521 IT Pros & Developers. It's quick & easy.

new line character

sanjay123456
100+
P: 125
Dear Friends ,

[PHP]

echo "hello";
echo ""world;

i want to print helloin onl line and world in next line tell me how can it possible ?
Feb 12 '07 #1
Share this Question
Share on Google+
3 Replies


sanjay123456
100+
P: 125
ok

problem is solved by following changes

[PHP]

echo "hello <br/>";
echo "world";

[/PHP]
Feb 12 '07 #2

ronverdonk
Expert 2.5K+
P: 4,258
[php]
echo "Hello<br>World";[/php]

Ronald :cool:
Feb 12 '07 #3

Motoma
Expert 2.5K+
P: 3,235
[PHP]
echo "<pre>Hello
world</pre>";
[/PHP]

[PHP]
echo "<pre>Hello\nworld</pre>";
[/PHP]
Feb 12 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.