Difference between revisions of "PHP code"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) |
(No difference)
|
Revision as of 17:48, 20 September 2016
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.