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 trialSjoerd Vermeijden
633 PointsI've seen 2 videos now where he doesn't close the php tag. How come it still works and why?
No closing of the php tag
2 Answers
Baptiste Fehrenbach
2,227 PointsIf your file contain only php, don't close the php tag, there could be bugs if you put a space after it! It still works cause you say to the navigator that after this tag (< ? php) there will be php ! If you close the tag you're saying that it's not php anymore, so if there is only php in your file you don't need to close, and to avoid bugs don't close this tag !
Sjoerd Vermeijden
633 PointsCool stuff man thanks!