Results 1 to 5 of 5
Thread: Line space.,
-
03-15-2011, 03:19 AM #1
Freshman
- Join Date
- Mar 2011
- Posts
- 10
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
Line space.,
Is there any other method for linebreak in php code instead of using "<br>"?
<?
for($i=0;$i<10;$i++)
{
echo $i."<br>";
}
?>
-
05-26-2011, 08:25 AM #2
Junior
- Join Date
- Apr 2011
- Posts
- 332
- Thanks
- 0
- Thanked 2 Times in 2 Posts
- Feedback Score
- 0
I think we use this concept in HTML not in PHP.
-
06-16-2011, 09:26 PM #3
Freshman
- Join Date
- Jun 2011
- Posts
- 13
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
\n should do it, when running output of a textarea, you can use nl2br()
-
06-18-2011, 07:27 PM #4
I think we use this concept in HTML not in PHP.
-
06-20-2011, 07:13 AM #5
Junior
- Join Date
- Mar 2011
- Location
- Los Angeles
- Posts
- 413
- Thanks
- 0
- Thanked 3 Times in 3 Posts
- Feedback Score
- 0
echo "a\nb";
// would output a then newline then b
// another example
echo '<html>' . "\n";
echo '<head>' . "\n" . '<title>';
// etc
Los Angeles Web Designers
Similar Threads
-
games on line
By nelson121 in forum General TalkReplies: 9Last Post: 02-28-2011, 04:47 PM -
Sig Space for Youtube Links, 5 Links space remaining 5$=1 Link [4500+posts]
By cs?futuresasuke in forum LinksReplies: 0Last Post: 06-05-2010, 01:08 PM -
The $100 Adsense Line
By 2d0k in forum Pay Per Click AdvertisingReplies: 17Last Post: 03-22-2010, 05:00 AM -
Line Graph script
By JavaScriptBank in forum JavaScript & AJAXReplies: 0Last Post: 12-13-2009, 07:54 PM -
Name your best chat up line.
By wujijiangjun in forum General TalkReplies: 0Last Post: 08-16-2008, 03:40 PM


Reply With Quote


