使用php通过类名选择html dom中的内容

I would like to pick up the contents, included in html tag with a particular class, how can I do it with php? i have write code with pquery, but the result does not work and gives me all the site content

    require __DIR__ . '/vendor/autoload.php';

$ch = curl_init("http://www.hosteltur.com");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
$content = curl_exec($ch);
curl_close($ch);



$html = $content;

$dom = pQuery::parseStr($html);

$dom->query('.article-news');


echo $dom->html();

To find HTML for the element having certain class below code will help.

$dom->query("//*[contains(@class, '.article-news')]");
echo $dom->html();