コードを手伝ってください
$homepage = file_get_contents('index.html');
foreach($homepage->find('table') as $table){
// returns all the <tr> tag inside $table
$all_trs = $table->find('tr');
$count = count($all_trs);
echo $count;
}
index.html のコンテンツを取得してから tr タグの数を数えようとしていますが、上記のコードが機能しません。