Login or Sign Up
Logging in...
Remember me
Log in
Forgot password or user name?
or
Sign Up
Log in with
Search in titles only
Search in PHP only
Search
Advanced Search
Forum
Groups
Today’s Posts
Calendar
Forum
Server side development
PHP
Announcement
Collapse
No announcement yet.
new line character
Collapse
X
Collapse
Posts
Latest Activity
Photos
Search
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Mirror_Image
New to the CF scene
Join Date:
Dec 2007
Posts:
45
Share
Tweet
#1
new line character
Apr 13, 2009, 11:11 PM
is there any way to insert new line character in echo e,g
Code:
echo $var\n;
kbluhm
New to the CF scene
Join Date:
Apr 2007
Posts:
1511
Share
Tweet
#2
Apr 13, 2009, 11:23 PM
PHP Code:
echo
"
$var
\n"
;
echo
$var
.
"\n"
;
echo
$var
,
"\n"
;
ZCE
Comment
Post
Cancel
bdl
New to the CF scene
Join Date:
Apr 2007
Posts:
604
Share
Tweet
#3
Apr 13, 2009, 11:25 PM
PHP Code:
echo
"
{
$var
}
\n"
;
Newlines are interpreted in "double quotes". They won't show up in HTML, however; you'll need to use the <BR/> tag.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
X
Comment