Mbe - html2Array

A class thats transforms a String containing HTML code into an Array
The PHP class takes a string containing HMTL code and parses it to an array as good as possible (it tries to do its best even if the code is malformed). The class works inverse than others. It parses from the simplest HTML tags to the complex ones. It works fairly fast. It has the option to ignore single tags (such as meta tags, img tags and so on).

An easy example is this one:


$html = file_get_contents('http://www.google.com');
$parser = new htmlParser($html);
$ar = $parser->toArray();
var_dump($ar);
PHP 5+
current version: 1.02
Date Added: Jan 4th, 2010
Filed in: projects » PHP Scripts » PHP Class Scripts » HTML/CSS
Publisher: nikini
Contact Info: Send a Message to nikini
the team: view the project Peoples
0 points ( 0% like it)

0 up votes 0 down votes

I Use It - simple:
0 person is using this project