Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialCHEN HAOMING
5,376 Pointsstrings manipulation task3
I don't get why i couldn't pass the task.Need help guys Here is my coding.
'''PHP <?php
//Place your code below this comment $firstName = 'Rasmus'; $lastName = 'Lerdorf'; $fullName = $firstName.' '.$lastName;
$fullName .= ' was the original creator of PHP\n'; echo $fullName; ?> '''PHP
Btw, i have checked some answers to this question on treehouse, but all of their codes didn't work. Being so confusing.
<?php
//Place your code below this comment
$firstName = 'Rasmus';
$lastName = 'Lerdorf';
$fullName = $firstName.' '.$lastName;
$fullName .= ' was the original creator of PHP\n';
echo $fullName;
?>
1 Answer
Patrik Horváth
11,110 Pointsyour code is okey but 1 line have no sense in your case its more code for no reason :)
<?php
//Place your code below this comment
$firstName = 'Rasmus';
$lastName = 'Lerdorf';
$fullName = $firstName." ".$lastName;
echo $fullName . " was the original creator of PHP.\n";
?>
CHEN HAOMING
5,376 PointsCHEN HAOMING
5,376 PointsThank you for ex understanding answer, My friend. I have just passed the task.