次から href 属性を取得する必要があります。
<tr>
<td><h2 class="officers"><a href="/finance/stocks/officerProfile?symbol=ABB.N&officerId=232795" class="link">Roger Agnelli</a></h2></td>
<td>53</td>
<td>2002</td>
<td>Non-Executive Member of the Board of Directors</td>
</tr>
私がここで試しているのは
$a = $tr->getElementsByTagName('a');
echo $a->getAttribute('href');
href 値を取得できません。どこに行方不明ですか?? ここで必要なのは、href リンクを出力し、その後、その href リンクを「役員 ID」に解析することです。
私の質問が明確であることを願っています..助けてください..