我有以下代码:
define('DB_USERTABLE_NAME','firstname');
但我需要firstname
+ lastname
作为DB_USERTABLE_NAME
任何人都可以让我知道怎么做
由于
此致
答案 0 :(得分:1)
试试这段代码:
define('DB_USERTABLE_NAME',trim($firstname).trim($lastname));
$firstname = "Rashid";
$lastname = "Rana";
define('DB_USERTABLE_NAME',trim($firstname).trim($lastname));
echo DB_USERTABLE_NAME; // RashidRana