I have news page that shows my news. I used table to show headlines.

```
<table class="news">
<tr>
    <th>#</th>
    <th></th>
</tr>
<tr>...</tr>
<tr>...</tr>
</table>

```

I have other tables in this page. But I want to get this table in another page. I searched and just find this way:

```
$text = file_get_contents("http://www.example.com/news");
echo strip_tags($text, "<table><tr><th><td>");

```

Output contains all tables in news page. My goal is just table with class "news".

How can I do that?