duangang2825 2016-10-31 10:59
浏览 33
已采纳

如何在变量中存储已定义的常量

This is defined constant in config file.

define(BASE_URL, "http://example.com/lc-latest/");

I want to store in a variable for sending a confirmation email to complete the registration

$website=echo BASE_URL;
  • 写回答

1条回答 默认 最新

  • dongwuzun4630 2016-10-31 11:04
    关注
    $website =  BASE_URL ;
    <a href=" '.$website.'/confirm.php?accountid=' . $chk_number . '">Click here</a>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?