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 trialArash Emadi
10,002 PointsShould I close my PHP tags in my CodeIgniter projects?
I've been working on a web application using CodeIgniter. I used some tutorials to write my Models and Controllers, and in those tutorials, the teacher left the PHP tags open and did not close them. Is this right? Or should I close them all in the Controller and Model files? Thanks in advance.
1 Answer
miguelcastro2
Courses Plus Student 6,573 PointsYou don't need the closing ?> tag in your PHP files and not including it can help resolve some potential issues with PHP. It is a matter of preference, but overall many PHP developers omit the closing tag.