PHP: How do I add two variables and put a "." in the middle?

Andy

New member
I have two variables $first = "andrew" and $last = "smith" and would like to add them so the output looks like "andrew.smith". I know that $first.$last would make it "andrewsmith" but I need the . in the middle.
 
Back
Top