• closing tags “?>” seem to be missing in some theme’s template files. I have seen that it is not usually used in functions.php but I now see it missing in other template files as well.

    is it not necessary to close off the “<?php” line at the end of a template file and functions.php?

    Al

Viewing 2 replies - 1 through 2 (of 2 total)
  • Closing tags are not required in php functions, and in fact, leaving off closing tags will forgive some types of PHP errors from junk characters that could result in white screens.
    https://php.net/basic-syntax.phptags

    Thread Starter almcr

    (@almcr)

    OK, that is what I figured.

    still different to not see closing tags on a template file, other than functions.php. I noticed it in some of the template files used in “underscores”.

    Al

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘"?>" ending php code’ is closed to new replies.