looping through and parsing text
Posted: Wed Aug 01, 2012 9:37 am
hi
after pulling some text, each time there is only one occurrence of:
and
in between the two statements noted above is this:
how can i tell php to:
"look in between $clause1 and $clause2 and find each instance of and find what is in between:
<tr><td class=no>
and
</td>
<td class=name>"
and then:
"look in between $clause1 and $clause2 and find each instance of and find what is in between:
<tr><td class=name>
and
</td>
</tr>
<tr><td class=no>"
tia
after pulling some text, each time there is only one occurrence of:
Code: Select all
$clause1 = "<th class=title>Data</th></tr></thead><tr><td> </td></tr>";
//(i am adding the variable)
Code: Select all
$clause2 = "</div><div id=page_select class=center></div>";
Code: Select all
<tr><td class=no>1</td>
<td class=name>smith</td>
</tr>
<tr><td class=no>2</td>
<td class=name>jones</td>
</tr>
</table>
how can i tell php to:
"look in between $clause1 and $clause2 and find each instance of and find what is in between:
<tr><td class=no>
and
</td>
<td class=name>"
and then:
"look in between $clause1 and $clause2 and find each instance of and find what is in between:
<tr><td class=name>
and
</td>
</tr>
<tr><td class=no>"
tia