Home  >  Article  >  Backend Development  >  How to end a php statement correctly?

How to end a php statement correctly?

王林
王林Original
2019-09-06 09:36:287704browse

How to end a php statement correctly?

The end of PHP statements is a very simple but also very important and most easily overlooked issue. In actual work, sometimes errors occur because statements cannot end correctly, but such errors happen to be very difficult to detect. Therefore, how to end a statement correctly is actually a very small but very important problem.

In PHP, there is only one way to end a statement, using the ";" symbol. It should be noted that the end symbol must be in English and must be entered in half-width state to be valid.

Small example:

How to end a php statement correctly?If you want to learn more related issues, please visit the php Chinese website: PHP video tutorial

The above is the detailed content of How to end a php statement correctly?. For more information, please follow other related articles on the PHP Chinese website!

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