A user submits values in a form. On the action page I want to check if there is a table on the page whose id matches any values submitted via $_POST. I've seen examples using file_get_html(), but this it not listed as a function on php function list. What is/are the correct way(s) to parse html within a php file/document?
This is what I have at the moment
$source = file_get_contents('File.php');
$document = new DOMDocument;
$document->validateOnParse = true;
$document = loadHTHML($source);
However when I iterate through the php array document->getElementById() doesn't recognise Ref[$i].
So how do I find a html id in a php document?