I have been trying to parse the bottom table on this site using different tools.
So far I have had the greatest success using the Simple HTML Dom library, but I still cannot figure out how to parse only that last table.
So far my code is something along the lines of:
<?php
require('simple_html_dom.php');
$table = array();
$html = file_get_html('http://www.waterlevels.gc.ca/cgi-bin/tide-shc.cgi?zone=20®ion=1& language=english&station=9635&queryType=predict&year=2012&month=2&day=9&view=table&TZ=PST');
foreach($html->find('tr') as $row)
{
//confused as what to do there to parse only last table in given URL
}
echo '<pre>';
print_r($table);
echo '</pre>';
?>
If someone has any suggestiong as how to get the library to only parse the last table it would be greatly appreciated.
Thanks