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 trialMaria De Bruyn
4,635 PointsWhy do we only echo the date and the title in PHP?
Just curious why we echo the date and title and not any other lines of code for this part of the project.
3 Answers
Jack McDowell
37,797 PointsThe other lines of code that not echoed (like the "Shirts 4 Mike" after the date) are outside of the PHP code (the <?php ?> tags) and are interpreted as HTML, therefore there is no need to echo them out at this point, although they could be echoed out. HTML tags and text would also be echoed out from PHP if it is coming from inside a function or a logic statement, but you'll learn about that later in the videos! -Jack
Jack McDowell
37,797 PointsYou're welcome; do you mind marking the question as answered? Thanks!
Maria De Bruyn
4,635 PointsThanks!