$URLS = array (
'URL' => "http://www.stuff.co.nz/feeds/League.xml", 
"http://syndication.apn.co.nz/rss/nzhrsscid_000000079.xml", 
"http://syndication.apn.co.nz/rss/nzhrsscid_000000360.xml",
"http://syndication.apn.co.nz/rss/nzhrsscid_000000342.xml", 
"http://syndication.apn.co.nz/rss/nzhrsscid_000000518.xml",
"http://syndication.apn.co.nz/rss/nzhrsscid_000000270.xml",
"http://syndication.apn.co.nz/rss/nzhrssoid_000000292.xml",
"http://nz.rss.sports.yahoo.com/rugbyleague.xml",
"http://tvnz.co.nz/content/566082/rss_20_skin.xml",
"http://www.nrl.com.au/datafeeder/feed.aspx?format=barexml&feed_newsrss=req0&param_req0_options=5&param_req0_categoryid=9029",
"http://channels.nzcity.co.nz/rss/news.aspx?catid=989&fm=newsmain,narts","http://www.odt.co.nz/sport/league/feed",
"http://www.nzlive.com/en/rss?lang=en&type=search_events&sort=date&category_id=12&subcategory_id=126",
"http://feeds.feedburner.com/co/ngYY?format=xml");

foreach ($URLS as $aa) {

echo $aa['URL'];
echo "<br>";
}

All this does is print this....

h
h
h
h
h
h
h
h
h
h
h
h
h
h

    Because $aa is one element of array $URLS, and thus $aa is a string. $aa['URL'] is then treated as an index to the first character of string $aa, since 'URL' will convert to a 0 when cast to an integer.

    Just do echo $aa;.

      Write a Reply...