-
The Basics
The Basics
class
Every class definition begins with the keyword class, followed by a class
name, which can be any name that isn't a reserved
word in PHP. Followed by a pair of curly brac...
-
require
require
Note:
Prior to PHP 4.0.2, the following applies:
require()
will always attempt to read the target file, even if the line it's on
never executes. The conditional statement...
-
Arrays
Arrays
values to
keys.
This type is optimized in several ways,
so you can use it as a real array, or a list (vector),
hashtable (which is an implementation of a map),
dictionary, c...
-
Expressions
Chapter 14. Expressions
Expressions are the most important building stones of PHP. In PHP,
almost anything you write is an expression. The simplest yet
most accurate way to define an ex...
-
Operators
An operator is something that you feed with one or more values (or
expressions, in programming jargon) which yields another value (so that the
construction itself becomes an expression). So you ...
-
Control Structures
Any PHP script 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
state...