$table = $html->find('table', 0); // ID LOCK IE TABLE 0 (first table) Get the first table ?? foreach($table ->find('tr') as $tr) { // Foreach row in the table! if($td = $tr->find('td', 0)) { $Ex_Date = $td->plaintext; // Find the first TD (starts with 0) // ... and so on for each variable
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter