我有 10 个变量和一些数据(确认键、url、不同的消息等):
$confirmation_key = "http://www.example.com/?key=127e9kK";
$web_url = "www.example.com";
$welcome_message = "Hello, welcome to our program!";
我想用代码替换 $show_now 内容,我会写一个例子。
$show_now = "Hi, thank you for registration, please check url: {confirmation_key}. Best regards {web_url}";
必须更换为:
$show_now = "Hi, thank you for registration, please check url: http://www.example.com/?key=127e9kK. Best regards www.example.com";