I want to select children of the current div node and save them into variable:
<div id="summary">
<p>aaaaaaa</p>
<p>bbbbbbb</p>
<br>
<p>ccccccc</p>
<a></a>
<p>ddddddd</p>
</div>
I tried
$summary = $dom->saveHTML($xpath->query('//div[@id="summary"]/child::*')->item(0));
But it only returns the first P tag which is very strange to me cause '*' is supposed to get all of the children, so where I can fix it to select all of the children instead of only the first one?