【发布时间】:2016-02-21 19:02:26
【问题描述】:
我需要来自 file_get_contents(url) 的文件的部分代码 html
我愿意
$variableee = file_get_contents("http://url.com/path/to/file");
echo $variableee;
好的,现在在 Variableee 中,我已经有了所有 url 的代码。 在这段代码中有一个我需要的部分。我需要一个类名为“table”的表。
Es.
<div>text</div>
<span> text </span>
<table class="table">
<tr><td>Text that I need</td></tr>
</table>
我怎样才能得到它? 抱歉英语不好。
【问题讨论】:
标签: php html file-get-contents