Seo Forum

Coding & Programming => Programming Forum => Topic started by: chinmay.sahoo on 05-21-2016, 06:05:20

Title: Using braces and semicolons
Post by: chinmay.sahoo on 05-21-2016, 06:05:20
Like ActionScript, PHP consists of a series of statements normally executed in the sequence they appear in the script (unless the statements are inside a function, in which case both languages wait until the function is called before executing them). Each statement in PHP must be followed by a semicolon.

Statements can be grouped together between curly braces ({}), for example when you create a conditional test, loop, or function. Although ActionScript recommends a semicolon after the closing curly brace of an anonymous function, you should never use a semicolon after a closing curly brace in PHP.