The Asterisk Config PHP-Parser claims to be a simple but effective function writen in PHP non-OOP that is capable to parse any standard .conf Asterisk configuration file an drop the data into a multi-dimensional array.
A simple PHPparser class that scans through poorly formed html documents as if they were valid XML, and generates calls to customizable callback functions.