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 trialabdi ali
1,966 PointsHere's some code from a basic HTML file. Add a PHP command that would display the name of our website, Shirts 4 Mike hlp
php
<!DOCTYPE html>
<html>
<body>
<h1><?php echo Shirts 4 Mike; ?></h1>
</body>
</html>
Cosmin Cioaclă
21,339 PointsHi Ali,
You are almost there!
Echo needs a string so it can do its magic. You need to surround the text with single or double quotes.
echo "Shirts 4 Mike";
abdi ali
1,966 Pointsthank you comsin i finally solved it
1 Answer
Jose Luis Lopez
19,179 PointsWhat a bout something like this????????? <!DOCTYPE html> <?php $name = 'Shirts 4 Mike'; ?> <html> <body> <h1><?php echo $name; ?><h1> </body> </html>
Cosmin Cioaclă
21,339 PointsAre you going to need to use $name again on the page? If not, your code is more complex than it needs to be.
abdi ali
1,966 Pointsabdi ali
1,966 Pointshelp me to solve this problem guys!