Sampling in order phpQuery?

Hello! Use phpQuery. It is necessary to find all h2 and h3 in the order as they are located
<h2>Title h2</h2>
<p>...</p>
<h2>Title h2</h2>
<p>...</p>
the <h3>Title h3</h3>
<h2>Title h2</h2>
<p>...</p>
<h2>Title h2</h2>
the <h3>Title h3</h3>

phpQuery is looking for the tag. At the output of the first h2 and then h3 ( $headers = $doc->find('h2,h3'); )
How to implement out of order (h2, h2, h3, h2, h3) ?
March 23rd 20 at 19:08
1 answer
March 23rd 20 at 19:10
Solution
So no studying to do, the only option is to add the h2 and h3 are the same class, and it already do a search
Thank you very much! - milan_Williamso commented on March 23rd 20 at 19:13

Find more questions by tags PHP