dagnasty Posted October 31, 2006 Share Posted October 31, 2006 This has been driving me nuts a week now.Let's say I have HTML similar to this:[code]<tr><td>Name</td><td>Age</td><td>5</td><td>Date</td></tr>[/code]I want to get the data between an Nth occurance of a tag.In english-like psuedocode:get string between 3rd occurance of <td> and </td>which would be 5.Thanks guys. Quote Link to comment Share on other sites More sharing options...
dagnasty Posted October 31, 2006 Author Share Posted October 31, 2006 Well I could do a preg_match_all and get the ones I want. The Nth I will be looking for will be the nth array number. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.