Hello,
I am retrieving results from a RSS feed, but not all results have a title. I would like to run something like the below code which, lets me know how many times a title is empty.
If three "titles" are empty, then X code would dynamically echo "3" etc....
Not sure if a foreach would work... Thanks in advance!
<?php
if(empty($title)){
//Code for displaying how many times "$title" is empty
} else {
echo $title;
}
?>