Довідник по основам PHP
Basic syntax
-
PHP tags
PHP tags
-
Escaping from HTML
Escaping from HTML
-
Instruction separation
Instruction separation
-
Comments
Comments
Types
-
Introduction
Introduction
-
Type System
Type System
-
NULL
NULL
-
Booleans
Booleans
-
Integers
Integers
-
Floating point numbers
Floating point numbers
-
Strings
Strings
-
Numeric strings
Numeric strings
-
Arrays
Arrays
-
Objects
Objects
-
Enumerations
Enumerations
-
Resources
Resources
-
Callbacks / Callables
Callbacks / Callables
-
Mixed
Mixed
-
Void
Void
-
Never
Never
-
Relative class types
Relative class types
-
Literal types
Literal types
-
Iterables
Iterables
-
Type declarations
Type declarations
-
Type Juggling
Type Juggling
Variables
-
Basics
Basics
-
Predefined Variables
Predefined Variables
-
Variable scope
Variable scope
-
Variable variables
Variable variables
-
Variables From External Sources
Variables From External Sources
Constants
-
Syntax
Syntax
-
Predefined constants
Predefined constants
-
Magic constants
Magic constants
Expressions
-
Expressions
Expressions
Operators
-
Operator Precedence
Operator Precedence
-
Arithmetic Operators
Arithmetic Operators
-
Assignment Operators
Assignment Operators
-
Bitwise Operators
Bitwise Operators
-
Comparison Operators
Comparison Operators
-
Error Control Operators
Error Control Operators
-
Execution Operators
Execution Operators
-
Incrementing/Decrementing Operators
Incrementing/Decrementing Operators
-
Logical Operators
Logical Operators
-
String Operators
String Operators
-
Array Operators
Array Operators
-
Type Operators
Type Operators
Control Structures
-
Introduction
Introduction
-
if
if
-
else
else
-
elseif/else if
elseif/else if
-
Alternative syntax for control structures
Alternative syntax for control structures
-
while
while
-
do-while
do-while
-
for
for
-
foreach
foreach
-
break
break
-
continue
continue
-
switch
switch
-
match
match
-
declare
declare
-
return
return
-
require
require
-
include
include
-
require_once
require_once
-
include_once
include_once
-
goto
goto
Functions
-
User-defined functions
User-defined functions
-
Function arguments
Function arguments
-
Returning values
Returning values
-
Variable functions
Variable functions
-
Internal (built-in) functions
Internal (built-in) functions
-
Anonymous functions
Anonymous functions
-
Arrow Functions
Arrow Functions
-
First class callable syntax
First class callable syntax
Classes and Objects
-
Introduction
Introduction
-
The Basics
The Basics
-
Properties
Properties
-
Class Constants
Class Constants
-
Autoloading Classes
Autoloading Classes
-
Constructors and Destructors
Constructors and Destructors
-
Visibility
Visibility
-
Object Inheritance
Object Inheritance
-
Scope Resolution Operator (::)
Scope Resolution Operator (::)
-
Static Keyword
Static Keyword
-
Class Abstraction
Class Abstraction
-
Object Interfaces
Object Interfaces
-
Traits
Traits
-
Anonymous classes
Anonymous classes
-
Overloading
Overloading
-
Object Iteration
Object Iteration
-
Magic Methods
Magic Methods
-
Final Keyword
Final Keyword
-
Object Cloning
Object Cloning
-
Comparing Objects
Comparing Objects
-
Late Static Bindings
Late Static Bindings
-
Objects and references
Objects and references
-
Object Serialization
Object Serialization
-
Covariance and Contravariance
Covariance and Contravariance
-
OOP Changelog
OOP Changelog
Namespaces
-
Namespaces overview
Namespaces overview
-
Defining namespaces
Defining namespaces
-
Declaring sub-namespaces
Declaring sub-namespaces
-
Defining multiple namespaces in the same file
Defining multiple namespaces in the same file
-
Using namespaces: Basics
Using namespaces: Basics
-
Namespaces and dynamic language features
Namespaces and dynamic language features
-
namespace keyword and __NAMESPACE__ constant
namespace keyword and __NAMESPACE__ constant
-
Using namespaces: Aliasing/Importing
Using namespaces: Aliasing/Importing
-
Global space
Global space
-
Using namespaces: fallback to global function/constant
Using namespaces: fallback to global function/constant
-
Name resolution rules
Name resolution rules
Enumerations
-
Enumerations overview
Enumerations overview
-
Basic enumerations
Basic enumerations
-
Backed enumerations
Backed enumerations
-
Enumeration methods
Enumeration methods
-
Enumeration static methods
Enumeration static methods
-
Enumeration constants
Enumeration constants
-
Traits
Traits
-
Enum values in constant expressions
Enum values in constant expressions
-
Differences from objects
Differences from objects
-
Value listing
Value listing
-
Serialization
Serialization
-
Examples
Examples
Errors
-
Basics
Basics
-
Errors in PHP 7
Errors in PHP 7
Exceptions
-
Extending Exceptions
Extending Exceptions
Generators
-
Generators overview
Generators overview
-
Generator syntax
Generator syntax
-
Comparing generators with Iterator objects
Comparing generators with Iterator objects
Attributes
-
Attributes overview
Attributes overview
-
Attribute syntax
Attribute syntax
-
Reading Attributes with the Reflection API
Reading Attributes with the Reflection API
-
Declaring Attribute Classes
Declaring Attribute Classes
References Explained
-
What References Are
What References Are
-
What References Do
What References Do
-
What References Are Not
What References Are Not
-
Passing by Reference
Passing by Reference
-
Returning References
Returning References
-
Unsetting References
Unsetting References
-
Spotting References
Spotting References
Predefined Variables
-
Superglobals
Superglobals
-
$GLOBALS
$GLOBALS
-
$_SERVER
$_SERVER
-
$_GET
$_GET
-
$_POST
$_POST
-
$_FILES
$_FILES
-
$_REQUEST
$_REQUEST
-
$_SESSION
$_SESSION
-
$_ENV
$_ENV
-
$_COOKIE
$_COOKIE
-
$php_errormsg
$php_errormsg
-
$http_response_header
$http_response_header
-
$argc
$argc
-
$argv
$argv
Predefined Exceptions
-
Exception
Exception
-
ErrorException
ErrorException
-
Error
Error
-
ArgumentCountError
ArgumentCountError
-
ArithmeticError
ArithmeticError
-
AssertionError
AssertionError
-
DivisionByZeroError
DivisionByZeroError
-
CompileError
CompileError
-
ParseError
ParseError
-
TypeError
TypeError
-
ValueError
ValueError
-
UnhandledMatchError
UnhandledMatchError
-
FiberError
FiberError
Predefined Interfaces and Classes
-
Traversable
Traversable
-
Iterator
Iterator
-
IteratorAggregate
IteratorAggregate
-
InternalIterator
InternalIterator
-
Throwable
Throwable
-
ArrayAccess
ArrayAccess
-
Serializable
Serializable
-
Closure
Closure
-
stdClass
stdClass
-
Generator
Generator
-
Fiber
Fiber
-
WeakReference
WeakReference
-
WeakMap
WeakMap
-
Stringable
Stringable
-
UnitEnum
UnitEnum
-
BackedEnum
BackedEnum
-
SensitiveParameterValue
SensitiveParameterValue
Predefined Attributes
-
Attribute
Attribute
-
AllowDynamicProperties
AllowDynamicProperties
-
ReturnTypeWillChange
ReturnTypeWillChange
-
SensitiveParameter
SensitiveParameter
Context options and parameters
-
Socket context options
Socket context options
-
HTTP context options
HTTP context options
-
FTP context options
FTP context options
-
SSL context options
SSL context options
-
CURL context options
CURL context options
-
Phar context options
Phar context options
-
Context parameters
Context parameters
-
Zip context options
Zip context options
-
Zlib context options
Zlib context options