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
Release: 2016-07-25 08:44:06
Original
986 people have browsed it

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


source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template