Home >Backend Development >PHP Tutorial >PHP comments are prone to errors in the PHP closing tag environment

PHP comments are prone to errors in the PHP closing tag environment

WBOY
WBOYOriginal
2016-07-25 08:44:06987browse

In php, everything after the comment symbol and before the end of the line, or before the php closing tag is a comment.

  1. // here is a comment ?> here is not
Copy code

In the above line of code, the text "here is a comment" before the closing tag is part of the comment. The text "here is not" after the closing tag will be treated as html because it is outside the closing tag.

php


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn