how to use simpleHTMLdom to get a string that is inside a <th> tag (and there is many other <th>) For example :
<th>name</th>
<td>john</td>
<th>age</th>
<td>32</td>
How to get 32 ? note that sometimes, the website i'm parsing, doesn't contain the same number of <th> sometimes there is no <th>name</th> so i cant do : $html->find('th',1) to get age and go to <td> to get 32
Any way to perform something like : $html->find('age') ?
Thank you