Control Structures


Any PHP scripts 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.

All of statements and grouped statements are normally executed in order but you can skip or repeat statements by specifying condition.

Most control structures provided by PHPoC are very similar with other programming language including C.

※ PHPoC does not support foreach, declare, require, require_once and goto in PHP.