Ok i have a bit of a problem and hope someone can help me out.
I'm using Simple HTML Dom PHP Class and trying to grab info from another site example below.
$html = file_get_html("http://example.com");
$find_country = $html->find('div[class=inline] span', 0);
if (!empty($find_country)) {
$country = $find_country->plaintext;
} else {
$country = '';
}
Now on the site where this code gets the info from there are two that are the same example below
<div class="inline">
<h3>Country:</h3>
<span>USA</span>
</div>
<div class="inline">
<h3>Run Time:</h3>
<span>120 min</span>
</div>
Now i only want to grab the Country but some times the Country is not available and it ends up getting the run time so could i use
<h3>Country:</h3>
Part to stop this could someone please help me out thanks.