ソースコードは問題なく取得できますが、特定のdiv内からデータを取得できるようにしたいと考えています。
$html = file_get_contents('http://www.website.com');
$htmlに含まれていると言う:
<div class="productData">
<div class="productDescription">Here is the product description</div>
<div class="productPrice">1.99</div>
</div>
内のデータを返すことができるようにしたいのですが、これはすべてのオカレンスに対して行いますか?
ありがとうございました。