问题
So I am in the need of line of code that echos a link so that the $text is the text of the link and the $href is the href value.
回答1:
echo "<a href='$href'>$text</a><br />\n";
来源:https://stackoverflow.com/questions/16006445/how-do-i-echo-the-link-and-its-text-from-a-scraped-page-with-php