Mr world wide
Mr world wide

Reputation: 4854

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;

Upvotes: 1

Views: 1372

Answers (1)

Denis Slonovschi
Denis Slonovschi

Reputation: 889

$website =  BASE_URL ;
<a href=" '.$website.'/confirm.php?accountid=' . $chk_number . '">Click here</a>

Upvotes: 1

Related Questions