PHP code

From Wiki @ Karl Jones dot com
Revision as of 18:48, 20 September 2016 by Karl Jones (Talk | contribs) (Created page with "'''PHP code''' is text written in the PHP programming language. PHP code is stored in PHP files. Inside a PHP file, the PHP code is written inside a PHP code islan...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

PHP code is text written in the PHP programming language.

PHP code is stored in PHP files.

Inside a PHP file, the PHP code is written inside a code island.

Statements

PHP code consists of one or more statements.

A statement expresses some action to be carried out.

Most computer programs are made up of multiple statements.

Semicolon end-of-statement

In PHP, the semicolon (;) indicates the end of a statements.

Two PHP statements must be separated by a semicolon.

It is common to speak of "ending the statement with a semicolon." However, a single PHP statement may omit the semicolon, because the semicolon does not actually end the line -- it separates two statements.

See also

External links