How to chain in phpquery (almost everything can be a chain)
问题 Good day everyone, I'm very new with phpquery and this is my first post here at stackoverflow for a reason that i cant find the correct for syntax for the phpquery chaining. I know someone knows what i been looking for. I only want to remove the a certain div inside a div. <div id = "content"> <p>The text that i want to display</p> <div class="node-links">Stuff i want to remove</div> </content> This few lines of codes works perfect pq('div.node-links')->remove(); $text = pq('div#content');