-1
我能夠得到一個網站的編碼與file_get_contents
但我希望能夠得到某些值的HTML。這段代碼總是相同,但是html標籤之間的值會隨時變化。這是HTML代碼:PHP網頁抓取
<div class="cheapest-bins">
<h3>Cheapest Live Buy Now</h3>
<table>
<tbody><tr>
<th>Console</th>
<th>Buy Now Price</th>
</tr>
<tr class=" active">
<td class="xb1">XB1</td>
<td>1,480,000</td>
</tr>
<tr class="">
<td class="ps4">PS4</td>
<td>1,590,000</td>
</tr>
<tr class="">
<td class="x360">360</td>
<td>---</td>
</tr>
<tr class="">
<td class="ps3">PS3</td>
<td>2,800,000</td>
</tr>
</tbody></table>
</div>
我該怎麼去得到:1,480,000 .. 1,590,000 .. ---和2,800,000?
由於具體的例子,這個完美的作品! –