I would like to grab data from a table without using regular expressions. I’ve enjoyed using simplexml for parsing RSS feeds and would like to know if it can be used to grab a table from another page.
Eg. Grab the page with curl or simply file_get_contents(); then use simplexml to grab contents?
You can use the
loadHTMLfunction from the DOM module, and then import that DOM into SimpleXML viasimplexml_import_dom: