您可以使用DomDocument和DOMXpath。
例如,像这样:http ://codepad.viper-7.com/kvRjAO
代码
<?php
$html = '<table>
<tr><th>Date</th><th>Time</th><th>Description</th></tr>
<tr><td>2013-10-22</td><td>03:05:29</td><td>DESC1</td></tr>
<tr><td>2013-10-22</td><td>03:05:29</td><td>DESC2</td></tr>
<tr><td>2013-10-22</td><td>03:05:29</td><td>DESC3</td></tr>
</table>
';
$doc = new DomDocument; // init
$doc->loadHTML($html); // load the table
$xpath = new DomXPath($doc); // init xpath for that html
$secondTDs = $xpath->query('//td[3]'); // basic xpath applied
$phpArray = array(); // init final array
foreach($secondTDs as $td){
$phpArray[] = $td->nodeValue; // each 3rd td value in final array
}
var_dump($phpArray); // display final array for demo purpose
结果
array(3) { [0]=> string(5) "DESC1" [1]=> string(5) "DESC2" [2]=> string(5) "DESC3" }