I have this part of an html page:
<td>
<div class='medals gold'>
</div>
</td>
To extract and print to video the div attribute I used this php code:
$div = $result->getElementByTagName('div');
echo $div->getAttribute('class') . " ";
In this way I get the string medals gold.
Could I extract indeed only the substring gold?
It would be perfect.