如何使用PHP从已删除的页面回显链接及其文本 [英] How do I echo the link and it's text from a scraped page with PHP

查看:148
本文介绍了如何使用PHP从已删除的页面回显链接及其文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我需要回显链接的代码行,以便$ text是链接的文本,而$ href是href值。

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.

推荐答案

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

这篇关于如何使用PHP从已删除的页面回显链接及其文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆