$content = curl_exec($ch);
curl_close($ch);
$domDocument = new DOMDocument();
@$domDocument->loadHTML($content);
$xPath = new DOMXPath($domDocument);
$pElement = $xPath->query('/html/body/section/div/div');
foreach($pElement as $element){
echo $domDocument->saveHTML($element);
}
$xPath->query('.//div/a', $element);