如何将URL链接插入PHP定义标记

时间:2013-04-18 16:18:51

标签: php url text hyperlink

我是php的绝对新手,所以请保持温和。

我有以下一行......

define('TEXT_INFORMATION', '<b>Note:</b> You can check their rate calculator here, and you are welcome to contact us.');

我想在邮局网站上放置一个html链接,其中显示“here”以及指向“联系我们”的联系页面的链接。怎么办?

2 个答案:

答案 0 :(得分:1)

这就是你要找的东西

define('TEXT_INFORMATION', '<b>Note:</b> You can check their rate calculator here, and you are welcome to <a href="your link">here</a>.');

将我的链接替换为联系我们页面的href标签,其中我已添加“您的链接”

答案 1 :(得分:0)

您可以将这些单词包装在HTML锚标记中,如下所示:

define('TEXT_INFORMATION', '... <a href="YOUR URL">here</a> ...'