如何用PHP从抓取的页面回显链接及其文本?


How do I echo the link and it's text from a scraped page with PHP

所以我需要一行代码来响应链接,以便$text是链接的文本,$href是href值。

echo "<a href='$href'>$text</a><br />'n";