Elements of this Web site are protected by trade dress and other laws and may not be copied or imitated in whole or in part. You can contact the webmaster at . For more information on the PHP Development Team and the PHP project, please see . Variables Constants Expressions Operators Control Structures Functions Classes and Objects String Operators else Chapter 11. Any PHP script is built out of a series of statements.
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. The if construct is one of the most important features of many languages, PHP included. It allows for conditional execution of code fragments.