PHP PHP Basics Daily Exercise Program String Manipulation

I see a variable named $firstName but it is not set to the string "Rasmus"

I see a variable named $firstName but it is not set to the string "Rasmus".

how do approach this one..need help

index.php
<?php

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


?>

1 Answer

KRIS NIKOLAISEN
KRIS NIKOLAISEN
54,164 Points

You need to remove the spaces in your first and last name values. If you need one later you can concatenate a space as follows:

a = b . " " . c