Introduction

Any PHP script is built out of a series of statements. A statement can be an assignment, a function call, a loop, a conditional statement or even a statement that does nothing (an empty statement). Statements usually end with a semicolon. In addition, statements can be grouped into a statement-group by encapsulating a group of statements with curly braces. A statement-group is a statement by itself as well. The various statement types are described in this chapter.

Коментарии

Автор:
Statements "usually" end with a semicolon. In particular, statements that are statement-groups end with the "}", and a closing "?>" is also enough to end a statement (and turn off parsing, of course).

Writing "};" is wrong and can lead to bugs because now there's one of those "empty" statements in there that could potentially mess with control flow.
2020-07-04 02:19:26
http://php5.kiev.ua/manual/ru/control-structures.intro.html

    Поддержать сайт на родительском проекте КГБ