Using braces and semicolons

Author Topic: Using braces and semicolons  (Read 1406 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 158
  • Karma: 0
    • We Helpline
Using braces and semicolons
« 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.


Related Topics

  Subject / Started by Replies Last post
0 Replies
Last post 01-09-2017, 06:01:05
by chinmay.sahoo