Getting Started with PHP
Features of PHP
HTTP authentication with PHP
Cookies
Sessions
Dealing with XForms
Handling file uploads
Language Reference in PHP
POST method uploads
Error Messages Explained
Common Pitfalls
Uploading multiple files
PUT method support
Using remote files
Connection handling
Persistent Database Connections
Safe Mode
Using PHP from the command line
Introduction
Differences to other SAPIs
Command line options
Executing PHP files
Input/output streams
Interactive shell
Built-in web server
INI settings
Garbage Collection
DTrace Dynamic Tracing
Basic syntax
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
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
Exceptions
Generators
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