So is $title the title of a single RSS feed item? If so, you can do something like:
$count = 0;
foreach($rssFeedItems as $title)
{
if(empty($title))
echo ++$count; // a prepend increment will add one to $count before it is used
else
echo $title;
}
Reputation Points: 395
Solved Threads: 192
Veteran Poster
Offline 1,136 posts
since Aug 2007