I've just found and downloaded phpQuery to try out .. so I'm new to
its usage.
My google search was "php prepend css selectors" ...
Here is what I would like to try ..
Load two documents .. an HTML doc and a CSS style sheet .. and prepend
selectors each with a unique ID (to ensure uniqueness of embedded CSS
style amongst others in a drupal-7.8 PHP platform).
I do not want to use inline styles in the embedded HTML .. so the HTML
documents and linked CSS stylesheets both have to be parsed to change
the selectors throughout to be unique (by prepending a unique string).
Here is the jQuery equivalent I've found ..
http://api.jquery.com/prepend/
I would appreciate some tips/examples to get started in phpQuery ..
load two documents (HTML and CSS)
prepend selectors
save documents