PHP tags
When PHP processes a file, it recognizes the opening and closing
tags,
A whitespace character (space, tab, or newline) must follow
PHP also includes the short echo tag
Example #1 PHP Opening and Closing Tags
Short tags (example three) are available by default but can be disabled either via the short_open_tag php.ini configuration file directive, or are disabled by default if PHP is built with the --disable-short-tags configuration.
If a file contains only PHP code, it is preferable to omit the PHP closing tag at the end of the file. This prevents accidental whitespace or new lines being added after the PHP closing tag, which may cause unwanted effects because PHP will start output buffering when there is no intention from the programmer to send any output at that point in the script.
|