I'm working on a project where I need to get all the data from a HTML class.
<div class="sprofile">
    <a href="http://www.cibap.nl/profile/2127/"><b>Jeroen Rinzema</b></a>
    <br />
    <i>Reclame en Media</i>
    <br />
    Klas RMM21C
    <div class="istatus offline">
    Offline
    </div>                
</div>
This is the HTML that I need to get from the HTML page. But I don't know how I can select this part of the HTML document in PHP. The parts I need to use are: Jeroen Rinzema and Klas RMM21C
If you want to see the full HTML document can you do that here.
What I have tried so far is:
$url = "http://www.cibap.nl/profile/$username";
$html = file_get_html($url);
foreach($html->find('div.sprofile') as $article){
    $item['name'] = $article->find('div.sprofile a b', 0)->plaintext;
    $item['klas'] = $article->find('div.sprofile', 0)->plaintext;
}
echo'done';
 
     
     
     
    