Variable transform? how?

I would like to take an existing variable in some code called $userid and be able to have another variable called $userid2 which would be the value from $userid with a 2.

If $userid ends up being “SatanCow” I want to then make $userid2 = “SatanCow2” how would i do this?

$userid = “SatanCow”;
$userid2 = $userid.“2”;

Sponsor our Newsletter | Privacy Policy | Terms of Service