I got a question by a fellow programmer last tuesday about why I don’t use closing PHP tags. First of all, PHP doesn’t require it, so you even save a few bits on your total filesize. But the most important reason is that it prevents additional whitespace that could really mess up your website or application. Continue reading “Why I don’t use closing PHP tags”
Never use closing tags in PHP, they add unnecessary whitespace which could seriously mess up your website or application. Plus they’re not required.