SimplePie-如何过滤没有图像的Feed项?

I only want feed items that have images. How do I filter out the ones that don't?

In your loop through the items, you can check the item content for the img tag:

foreach ($feed->get_items() as $key=>$item) {
   if ( stristr($item->get_content(), '<img') == false ) {
      // show the article
   }
}

This code will only show articles that DON'T have images. To do the opposite, change the condition:

if ( stristr($item->get_content(), '<img') != false ) {