htmlSQL: Query HTML Elements Like SQL
10
Apr
htmlSQL is a PHP class for querying HTML using a SQL-like query.
It saves you from writing complex regular expressions to extract values.
htmlSQL example:
This query returns an array with all links that contain the attribute class="list".
Isn’t it great?
How to use?
You simply insert the PHP files from th download package and that’s all.





3 Responses for "htmlSQL: Query HTML Elements Like SQL"
Seems like overkill to me. Just use jQuery or another JS framework to accomplish. Example in jQuery:
var title = $(”.list”).attr(”title”);
var href = $(”.list”).attr(”href”);
jQuery in PHP ?
htmlSQL is a ->>> PHP class <<<- for querying HTML using a SQL-like query.
For parsing remote results or form input in HTML.
[...] htmlSQL — php-класс для выборки HTML-элементов SQL запросами [...]
Valid XHTML | Valid CSS
Popular Posts