i have this:
Code:
<td>
<%test1%>
<%test2%>
</td>
<td>
<%test3%>
<%test4%>
<%test5%>
</td>
now what i need to do is use preg_match_all to eventually make this kind of an array:
PHP Code:
array(2) {
[0]=>
array(2) {
[0]=>
string(9) "<%test1%>"
[1]=>
string(9) "<%test2%>"
}
[1]=>
array(3) {
[0]=>
string(9) "<%test3%>"
[1]=>
string(9) "<%test4%>"
[2]=>
string(9) "<%test5%>"
}
}
2 arrays because of 2 "TD"'s
but everything i try fails. can someone help me out?