Skip to content
Browse files

fixed readme to incorporate getters/setters

  • Loading branch information...
1 parent c24bca6 commit 3483afaf565214dcbf5755e346fc8fd17e206092 @rjz committed Oct 24, 2011
Showing with 7 additions and 3 deletions.
  1. +7 −3 readme.md
View
10 readme.md
@@ -64,12 +64,16 @@ The order of an RSS feed is time-agnostic, but applications may benefit from hav
$url = 'http://rss.news.yahoo.com/rss/topstories';
$feed = $this->atomizer->load( file_get_contents( $url ) );
- $items = $feed->channels[0]->items;
+ foreach( $feed->channels as $channel ) {
+
+ $items = $channel->items;
- foreach( $items as $item ) {
- print_r( $items );
+ foreach( $items as $item ) {
+ echo '<li>' . $item->title . '</li>';
+ }
}
+
Author
------

0 comments on commit 3483afa

Please sign in to comment.
Something went wrong with that request. Please try again.