I am very new to php and simplepie. I would like to be able to use simplepie to store an image url to a variable. For my example, I will use the ebay rss feed (http://deals.ebay.com/feeds/rss). The image that I am trying to get the url of is in a <image src=
tag. When i use the code
foreach ($feed->get_items() as $item):
?>
<?php echo $item->get_description(); ?>
<?php endforeach; ?>
The image and description are shown, but I am unable to store the image url to a variable. How can I use simplepie to store an image url to a variable?
Thanks