Get Started
To begin using PQLite, please download it and place it in the directory of your choosing. Create a PHP file and include PQLite, like so:
include_once( 'PQLite.php' );
All of PQLite's functions are now available to you. To traverse and manipulate HTML documents, instantiate a PQLite object. This can be done by simply passing HTML to PQLite's constructor:
/* Take HTML from a file: */ $pq = new PQLite( file_get_contents( "document.html" ) );
Once you've gotten this far, refer to the rest of the documentation for the functions you can use. Wasn't that simple?
After you retrieve and manipulate using the documentation, you can access the new HTML by calling the getHTML() function:
/* Get the new HTML and print it out */ echo $pq->getHTML();
How easy was that?