将链接放入php

将链接放入php,php,Php,我想把链接放到一个存储在变量中的句子中。。 如何放置链接? 因为我试着用echo,但没用 这是我的密码: if($_POST['rb_elt_accommodation']=="Yes") $accomodation_val .= "Participants must deal directly with the hotel. Please call the hotel direct at +xxxxxx. Details on accomodation booking are availab

我想把链接放到一个存储在变量中的句子中。。 如何放置链接? 因为我试着用echo,但没用

这是我的密码:

if($_POST['rb_elt_accommodation']=="Yes") 
$accomodation_val .= "Participants must deal directly with the hotel. Please call the hotel direct at +xxxxxx. Details on accomodation booking are available"echo '<a href="http://abc.com">here</a>.'";
if($\u POST['rb\u elt\u住宿]==“是”)
$accomodation_val.=“参与者必须直接与酒店打交道。请直接致电+xxxxxx与酒店联系。有关住宿预订的详细信息,请访问“echo”。”;
如果($\u POST['rb\u elt\u住宿']=“是”)
{
$accomodation_val.=“参与者必须直接与酒店打交道。
请直接打+xxxxxx给酒店。
可提供住宿预订的详细信息
.';
}
请注意,我是如何将您的echo quote char从
更改为
这是为了在html字符串中允许

如果($\u POST['rb\u elt\u acculation']==“Yes”)
{
$accomodation_val.=“参与者必须直接与酒店打交道。
请直接打+xxxxxx给酒店。
可提供住宿预订的详细信息
.';
}
请注意,我是如何将您的echo quote char从
更改为

这是为了允许
在html字符串中。

首先,您必须学习如何格式化代码,使其适合屏幕首先,您必须学习如何格式化代码,使其适合屏幕screen@Col.弹片:是的,它帮了我一把lot@Beginner我知道这对你有帮助。“但是你从中学到了什么?”上校:是的,这对我有帮助lot@Beginner我知道这对你有帮助。但你从中学到了什么?
if ($_POST['rb_elt_accommodation'] == "Yes")
{
    $accomodation_val .= 'Participants must deal directly with the hotel. 
                          Please call the hotel direct at +xxxxxx. 
                          Details on accomodation booking are available 
                          <a href="http://abc.com">here</a>.';
}