<?php require_once 'html2array.inc.php'; $html = file_get_contents("sample_output.txt"); $parser =& new Html2Array($html); $result = $parser->parseForms(); echo "<pre>"; print_r($result); echo "</pre>"; ?>