正则表达式效果很好。
$page = // get the page$page = preg_split("/n/", $page);for ($text in $page) { $matches = array(); preg_match("/^<td>(.*)</td>$/", $text, $matches); // insert $matches[1] into the database}请参阅文档 preg_match。

正则表达式效果很好。
$page = // get the page$page = preg_split("/n/", $page);for ($text in $page) { $matches = array(); preg_match("/^<td>(.*)</td>$/", $text, $matches); // insert $matches[1] into the database}请参阅文档 preg_match。