PHP PHP Basics Daily Exercise Program String Manipulation

David Dunlop
David Dunlop
1,322 Points

create a third name called fullName

concatenation

index.php
<?php

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

2 Answers

KRIS NIKOLAISEN
KRIS NIKOLAISEN
54,172 Points

You don't need quotes around your variables but do need a dollar sign before $lastName

David Dunlop
David Dunlop
1,322 Points

thanks much just got sloppy