array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'control-structures.intro.php', 1 => 'Introduction', ), 'up' => array ( 0 => 'language.control-structures.php', 1 => 'Control Structures', ), 'prev' => array ( 0 => 'language.control-structures.php', 1 => 'Control Structures', ), 'next' => array ( 0 => 'control-structures.if.php', 1 => 'if', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'language/control-structures.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
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.