Thursday 6 October 2016

Why Magento PHP files done have closing PHP tags?

Working with Magento you can oberve that controller, module, installer, helper PHP files don't include PHP ending tags. The reson behind is,

1) PHP interpreter accept the missing closing tag in PHP.
2) It avoid the white space when you try to get response from code.

No comments:

Post a Comment