tags:

views:

145

answers:

2

I know that I can use DOMDocument and DOMXPath to manipulate XML files. But, I really love JQuery, and it would be great if there was something more like JQuery in the PHP world that I could use for sever side DOM manipulation.

NOTE: I'm only interested here in how JQuery Selects and Manipulates the DOM, not all the other parts of JQuerry (I guess you can say just the Pop and the Sizzle parts).


Update:
It looks like there is an equivalent for the selector functions, but as far as the manipulation functions I guess I have to stick with DOMDocument.

+1  A: 

JQuery is Javascript library. There is no chance to rewrite it to PHP, because it is (primary) client-side technology. PHP is server-side technology. But it is possible, there is some wrapper for JQuery written in PHP.

Try:

retro
+3  A: 

Well, excluding all the JavaScript specific stuff you're left with a CSS selector engine:

http://framework.zend.com/manual/en/zend.dom.query.html

Enjoy :)

d11wtq
I think this is exactly what I'm looking for.
DKinzer