I would like to know how I can get the contents of the div with class="x-product" and save it to an array so I can manipulate them later.
I tried this code but it did not work.
<?php
$url = "http://www.megamamute.com.br/hardware/placas-de-video?PS=16";
$conteudo=file_get_contents($url);
preg_match_all('/<div class="x-product">(.+)<\/div>/', $url, $conteudo);
//echo $conteudo[1][0];
echo $conteudo;
?>
Note: I want to get the image, the description and the value of the product to put on a page of the site I'm creating.