Skip to main content
Topic: PHP files starting with <?php no ?> at end? (Read 5993 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

PHP files starting with <?php no ?> at end?

Hello,

A few PHP files I have checked begin with  <?php on the first line but, do not have  ?> as the last line. Was this done on purpose? And if so. why do you not need  ?> on the last  line?

John

Re: PHP files starting with <?php no ?> at end?

Reply #1

http://us3.php.net/basic-syntax.instruction-separation

Read the note on this page where it tells you it's optional.
Success is not the result of spontaneous combustion, you must set yourself on fire!

Re: PHP files starting with <?php no ?> at end?

Reply #2

Interesting,

Thank you for the link.


John

Re: PHP files starting with <?php no ?> at end?

Reply #3

Best practice - leave it off.

 

Re: PHP files starting with <?php no ?> at end?

Reply #4

Thanks elmer for reporting!
Since it's not a bug moving out. ;)
Bugs creator.
Features destroyer.
Template killer.