PDA

View Full Version : Combining two variables into one


kjc
10-31-2002, 04:25 PM
Ok. I know this is going to be a really simple bit of PHP. I want to combine two seperate text variables into one variable.
At the moment I have one variable for a firstname and another variable for that persons surname - how can i created another variable that contains both firstname and surname with a space inbetween?

Spookster
10-31-2002, 04:36 PM
$fullName = $firstName . " " . $surName;

kjc
10-31-2002, 04:52 PM
Originally posted by Spookster
$fullName = $firstName . " " . $surName;


Cheers Spookster :thumbsup: