简体   繁体   中英

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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