PHP files starting with <?php no ?> at end? January 20, 2014, 10:16:01 pm 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 – January 20, 2014, 10:51:10 pm http://us3.php.net/basic-syntax.instruction-separationRead the note on this page where it tells you it's optional.
Re: PHP files starting with <?php no ?> at end? Reply #2 – January 20, 2014, 11:09:02 pm Interesting,Thank you for the link.John
Re: PHP files starting with <?php no ?> at end? Reply #3 – January 21, 2014, 02:26:28 am Best practice - leave it off.
Re: PHP files starting with <?php no ?> at end? Reply #4 – January 24, 2014, 12:18:07 pm Thanks elmer for reporting!Since it's not a bug moving out.