Hello everyone.

I am trying to integrate a twitter search feed to my blog. My code works and displays the things I want except for the authors name.

This is probably, because its a nested tag looking like this in the feed.


I tried <?php echo $item['name']; ?>, but it doesn't work (no programmer here). So how do I display the content of the <name> tag?

Here the whole piece of code

$rss = fetch_rss('https://search.twitter.com/search.atom?q=ipad+cases');
$maxitems = 5;
$items = array_slice($rss->items, 0, $maxitems);

<?php if (empty($items)) echo '<li>No items</li>';
foreach ( $items as $item ) : ?>
<li><?php echo $item['name']; ?>
<?php echo $item['title']; ?>
<?php endforeach; ?>

I would appreciate any help on this.