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

瘦欲@ 提交于 2019-12-14 03:32:02

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!