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!
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 trial
Maria De Bruyn4,635 Points
Why 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.
Jack McDowell37,797 Points
The 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