help me with the code
$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;
}
i am trying to get content of index.html and then count the number of tr tags but the above code isn't working.