Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 136,006 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 2,352 people online right now. Registration is fast and FREE... Join Now!




How to add blank lines

 
Reply to this topicStart new topic

How to add blank lines

satimis
13 Mar, 2008 - 06:49 PM
Post #1

New D.I.C Head
*

Joined: 13 Mar, 2008
Posts: 2

Hi folks,


I have following entries on a php script
CODE

.....
.....
// List of RSS URLs
$rss_left = array(
'http://www.rte.ie/rss/gaa.xml',
'http://www.independent.ie/sport/hurling/rss',
'http://www.freshfolder.com/rss.php'
);

// Create lastRSS object
.....


I can't resolve how to add blank/white lines between the RSS channels/each URL.


Please shed me somelight. TIA


B.R.
satimis
User is offlineProfile CardPM
+Quote Post

spearfish
RE: How To Add Blank Lines
13 Mar, 2008 - 08:47 PM
Post #2

Monkey in Training
Group Icon

Joined: 10 Mar, 2008
Posts: 746



Thanked: 2 times
Dream Kudos: 225
My Contributions
Well right now all that you've done is (or all that's visible in the code) create an array. So the first one is $rss_left[0], the second is $rss_left[1], etc.

So when you're printing out the array, use either a for or while loop, echoing $rss_left[$i] ($i is an arbitrary variable generally used for counting), then include an echo "<br />"; at the end of the loop.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/1/08 12:54PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month