简体   繁体   English

如何将 PHP 定义的常量(值)存储为变量?

[英]How to store PHP defined constant (value) as a variable?

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;
$website =  BASE_URL ;
<a href=" '.$website.'/confirm.php?accountid=' . $chk_number . '">Click here</a>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM