Code: Select all
$destUser = "theUser";
$destDBUser = "theDBUser";
echo "$destUser_$destDBUser";nottheDBUser
Adding the underscore after the variable inside quotes supresses the variable in some way. Why?theUser_theDBUser
Moderator: General Moderators
Code: Select all
$destUser = "theUser";
$destDBUser = "theDBUser";
echo "$destUser_$destDBUser";nottheDBUser
Adding the underscore after the variable inside quotes supresses the variable in some way. Why?theUser_theDBUser
Code: Select all
echo "{$destUser}_{$destDBUser}"