PHP PHP Basics Daily Exercise Program String Manipulation

alan ingram
PRO
alan ingram
Pro Student 3,979 Points

Whats wrong with this code?

I tried the .= method as well as the plain assignment operation as shown. Still fails. I am not sure what the issue is.

index.php
<?php

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

3 Answers

KRIS NIKOLAISEN
KRIS NIKOLAISEN
54,164 Points

You are missing a space between the first and last name

alan ingram
PRO
alan ingram
Pro Student 3,979 Points

$fullName = $firstName . " " . $lastName; is what you mean? I guess I never thought of that. I assumed it was talking about around the dot.