Dec
16
16
PHP Pro Tip: Don't close your PHP documents with ?>
Topics: Tutorials, PHP & MySQL // 2 comments, 1,274 views
Recently on my Twitter I mentioned this exact tip, "PHP Pro Tip: Don't close your PHP documents with ?>.", and got many responses asking why or if its possible. I will briefly explain the benefits of this technique and when it applies. Many assumed I meant that you should never close your PHP scopes with ?>, but that's not the case, I was merely stating that the closing tag (at the very very bottom of your PHP file) does not need to be there. Continue reading...