Viewing 2 replies - 1 through 2 (of 2 total)
  • This is deliberate 🙂

    PHP doesn’t require the closing tag (it is assumed when the file ends). Not specifying the closing ?> helps prevent accidents like trailing whitespace which will cause the dreaded “headers already sent” error/warning.

    Thread Starter Cheung Tat Ming

    (@tatming)

    I see, i learn something ^^ thanks you

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Why some file don’t close the php tag?’ is closed to new replies.