Just wondering: in the PHP scripts delivered with the Editor examples the PHP code is started with <?php but never closed with ?>.
Is this intended and even a necessity or a lapse?
PHP scripts don't need to have a closing tag if they don't need to display anything after the code, and since the libraries scripts are pure PHP they never show HTML. Leaving them out also ensures that they don't accidentally introduce whitespace into the output.
Answers
Its intended.
PHP scripts don't need to have a closing tag if they don't need to display anything after the code, and since the libraries scripts are pure PHP they never show HTML. Leaving them out also ensures that they don't accidentally introduce whitespace into the output.
Allan
Thanks for the fast answer.