Preg split table all tds
I want to get all occurrences of tds in a string. At the moment im using
$tds = preg_split( '#(?=<td>)#', $toDisplayNotes );
but this does not get all the tds. is it possible to produce an array that
looks like this:
array {
[0] => "<td>hello</td>"
[1] => "<td align="right">world</td>"
[2] => "<td>another td</td>"
}
No comments:
Post a Comment