Semantic portal
Main
Courses
Domains
Terminology
About
PHP
Basic syntax
PHP tags
Escaping from HTML
Instruction separation
Comments
Types
Introduction
Booleans
Integers
Floating point numbers
Strings
Arrays
Iterables
Objects
Resources
NULL
Callbacks / Callables
Pseudo-types and variables used in this documentation
Type Juggling
Variables
Basics
Predefined Variables
Variable scope
Variable variables
Variables From External Sources
Constants
Syntax
Magic constants
Expressions
Operators
Operator Precedence
Arithmetic Operators
Assignment Operators
Bitwise Operators
Comparison Operators
Error Control Operators
Execution Operators
Incrementing/Decrementing Operators
Logical Operators
String Operators
Array Operators
Type Operators
Control Structures
Introduction
if
else
elseif/else if
Alternative syntax for control structures
while
do-while
for
foreach
break
continue
switch
declare
return
require
include
require_once
include_once
goto
Functions
User-defined functions
Function arguments
Returning values
Variable functions
Internal (built-in) functions
Anonymous functions
Classes and Objects
Introduction
The Basics
Properties
Class Constants
Autoloading Classes
Constructors and Destructors
Visibility
Object Inheritance
Scope Resolution Operator (::)
Static Keyword
Class Abstraction
Object Interfaces
Traits
Anonymous classes
Overloading
Object Iteration
Magic Methods
Final Keyword
Object Cloning
Comparing Objects
Late Static Bindings
Objects and references
Object Serialization
OOP Changelog
Namespaces
Namespaces overview
Defining namespaces
Declaring sub-namespaces
Defining multiple namespaces in the same file
Using namespaces: Basics
Namespaces and dynamic language features
namespace keyword and __NAMESPACE__ constant
Using namespaces: Aliasing/Importing
Global space
Using namespaces: fallback to global function/constant
Name resolution rules
FAQ: things you need to know about namespaces
Errors
Basics
Errors in PHP 7
Exceptions
Extending Exceptions
Generators
Generators overview
Generator syntax
Comparing generators with Iterator objects
References Explained
What References Are
What References Do
What References Are Not
Passing by Reference
Returning References
Unsetting References
Spotting References
Predefined Variables
Superglobals
$GLOBALS
$_SERVER
$_GET
$_POST
$_FILES
$_REQUEST
$_SESSION
$_ENV
$_COOKIE
$php_errormsg
$HTTP_RAW_POST_DATA
$http_response_header
$argc
$argv
Predefined Exceptions
Exception
ErrorException
Error
ArgumentCountError
ArithmeticError
AssertionError
DivisionByZeroError
CompileError
ParseError
TypeError
Predefined Interfaces and Classes
The Traversable interface
The Iterator interface
The IteratorAggregate interface
Throwable
The ArrayAccess interface
The Serializable interface
The Closure class
The Generator class
Context options and parameters
Socket context options
HTTP context options
FTP context options
SSL context options
CURL context options
Phar context options
MongoDB context options
Context parameters
Zip context options
Supported Protocols and Wrappers
file://
http://
ftp://
php://
zlib://
data://
glob://
phar://
ssh2://
rar://
ogg://
expect://
Language Reference in PHP
Domains:
PHP
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Errors
Exceptions
Generators
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Context options and parameters
Supported Protocols and Wrappers
Concept map of the section
→
Language Reference in PHP Section structure
Clickable & Draggable!