Using the DOMDocument class, I want to return the div elements as array items
$str = '
<div class="outer">outer div text
<div class="inner">inner div text</div>
</div>
';
$document = new DOMDocument();
ex:
$item[0] = '<div class="outer">outer div text
<div class="inner">inner div text</div>
</div>'
$item[1] = '<div class="inner">inner div text</div>'