Is it possible to get and then echo the content in between tags using only PHP?
For instance. If this is the following HTML:
<td class="header subject">Text</td>
How can you get Text from inside the tags and then echo it?
I thought this would work:
<?
preg_match("'<td class=\"header subject\">(.*?)</td>'si", $source, $match);
if($match) echo "result=".$match[1];
?>
But the $source variable has to be the entire page.
Note: There is only one instance of the header subject class, so there shouldn’t be a problem with multiple tags.
Assuming your problem is because you don’t know how to interpret the page, you might want to try this: