I have a variable called $content that looks like this: $content = '<td class="data2">1st Information</td><td class="data2">2nd Information</td><td class="data2">3rd Information</td>';
i want to be able to get the information between the <td class="data2"> and the </td> tag and loop it.
So for example once it is done, instead of having the following:
<td class="data2">1st Information</td>
<td class="data2">2nd Information</td>
<td class="data2">3rd Information</td>
It should be the following:
1st Information<br>
2nd Information<br>
3rd Information<br>
Can anyone please help?
Thanks