Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 PHP 在邮件中发送一个链接,但我无法正确格式化它:
$message=".<a href=."http://abc.com/viewprofile.php?userid=".$user_id.">"Click here to view user profile"</a>";
转义周围的引号href:
href
$message = "<a href=\"example.com\">Link</a>";