Classes and Objects

The Basics class Basic class definitions begin with the keyword class, followed by a class name, followed by a pair of curly braces which enclose

Internal (built-in) functions

PHP comes standard with many functions and constructs. There are also functions that require specific PHP extensions compiled in, otherwise fatal «undefined function» errors will

Variable functions on PHP

PHP supports the concept of variable functions. This means that if a variable name has parentheses appended to it, PHP will look for a function

Returning values

Values are returned by using the optional return statement. Any type may be returned, including arrays and objects. This causes the function to end its

Function arguments

Information may be passed to functions via the argument list, which is a comma-delimited list of expressions. PHP supports passing arguments by value (the default),

include function on PHP

The include() statement includes and evaluates the specified file. The documentation below also applies to require(). Files are included based on the file path given