有大神用过PHP Simple HTML DOM Parser这个吗 求指教
如何用这个获取
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="titleTop2">
<tr>
<td class="pageAlign">
<table cellpadding="0" width="100%" class="displayTag" cellspacing="1" border="0" id="user">
<thead>
<tr>
<th align="center" width="10%" class="sortable">课程号</th>
获取到 课程号 这三个字
Answers
$html = "<table>...</table>";
$htmlObject = str_get_html($html);
$th = $htmlObject->find('th', 0);
$text = $th->plaintext;