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. Link to comment https://forums.phpfreaks.com/topic/25647-retrieving-data-between-an-nth-occurance-of-2-tags/ 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. Link to comment https://forums.phpfreaks.com/topic/25647-retrieving-data-between-an-nth-occurance-of-2-tags/#findComment-117080 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.