After going through the docs I realized that the examples with no end ?>
was not a typo. Is that for every php script that uses in the framework or
just the framework classes? Will something bad happen if you do use '?>'
? How did that design decision come about?

Nothing bad happens if you use "?>". However, if you use "?>" and after it put some whitespace, something bad does happen - this whitespace gets output, and it might be output in wrong place at the wrong time. Since closing ?> is not required and anyway nothing is going to happen after ?>, many people omit it.
--
Stanislav Malyshev, Zend Software Architect
[EMAIL PROTECTED]   http://www.zend.com/
(408)253-8829   MSN: [EMAIL PROTECTED]

Reply via email to