Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Variables??? Please Help 1

Status
Not open for further replies.

chuckbridges

Programmer
Apr 15, 2005
19
US
How do I take say $user and $room
where $user = "chuck" and $room = "lobby" and make it
so that $userroom = "chuck lobby"

Thanks

Chuck
 
$userroom = $user . " " . $room;

or

$userroom = "$user $room";

-Dustin
Rom 8:28
 
Just for educational purposes:
Appending one string to another is called concatenation. As pointed out bu dustman the dot operator "." is used to concatenate variables that hold string values.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top