I need help extracting a table tags with output from file_get_contents().
After finding the start of my desired table, I need to find the correct </table> Tag so I can trim of the rest of the string.
Basically I need to check for subsequent "<table" or "</table" substrings until I find the correct "</table" corresponding to my iniial <table> tag.
How can I parse through my string, find the next "table", and determine if it is a opening or closing tag. If it is an opening tag, then look for the next closing tag, etc.
Any parsing or 'pereg' geniuses out there?
Thanks for any help on this!
Sincerely,
Jon