this is the html structure i'm working with (severly cleaned up)... this is one iteration of several
<div class="collection">
<div><a><img/></a></div> //VARIABLE
<div><a><img/></a></div> //VARIABLE
<div><a><img/></a></div> //VARIABLE
<div><a><img/></a></div> //VARIABLE
<div class="important">
<div NEED BACKGROUND HEX FROM THIS INLINE STYLE><a><img class="image" NEED THIS SOURCE/></a></div>
</div>
<div class="info">
<p class="name"><a NEED THIS HREF>NEED THIS TEXT</a></p>
<p class="details">NEED THIS TEXT</p>
</div>
<div class="last">
<p class="misc">NEED THIS TEXT</p>
</div>
</div>
The ones with variable dont always exist... there might be one, there might be 4...
I'm trying to nab all this in one sweep instead of doing multiple foreach's, processing and then appending arrays