Is it possible to have php not to require the begin/end tags (<?php ?>
) for some of the files?
The code should be interpreted as php by default.
I'm aware that I can leave out the end tag (?>
).
It's better to not use end tag. Begin tag is neccesary.
As MaoTseTongue mentioned, in Zend documentation there is written:
For files that contain only PHP code, the closing tag ("?>") is never permitted. It is not required by PHP, and omitting it´ prevents the accidental injection of trailing white space into the response.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With