proper syntax SP?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jasondavis
Forum Commoner
Posts: 60
Joined: Sat Feb 04, 2006 5:35 pm

proper syntax SP?

Post by jasondavis »

Code: Select all

$roomname = '&init_room=1008';
I'm having trouble here I need for 1008 to be a variable like

Code: Select all

$roomname = '&init_room=$room';
what is the proper way to do it?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

This is what I do... what is the "right" way is debatable

Code: Select all

$roomname = '&init_room=' . $room;
Post Reply