PHP PHP Basics Daily Exercise Program String Manipulation

Combining variables

What's wrong with my code. If i submit,it says this "It looks like you forgot to add a space between the first and last name".

$fullName=  $firstName    .    $lastName;
//Place your code below this comment


2 Answers

in PHP u need to use “” around to combine variables. for example : $fullName = “$firstName $lastName”

you can also use the . operator which function like +: $fullName= $firstName . " " . $lastName

Thanks I have noticed

check the updated answer