« Як змінити параметри конфігурації
Основний синтаксис »
PHP Manual
Довідник з мови
Довідник з мови
Основний синтаксис
Теги PHP
Відмежування від HTML
Поділ інструкцій
Коментарі
Типи
Вступ
Type System
NULL
Логічний (Booleans)
Ціле число (integer)
Десятковий дріб (float)
Рядок (string)
Numeric strings
Масив (array)
Objects
Enumerations
Resources
Зворотні виклики (Callbacks / Callables)
Mixed
Void
Never
Relative class types
Singleton types
Iterables
Type declarations
Type Juggling
Variables
Basics
Predefined Variables
Variable scope
Variable variables
Variables From External Sources
Constants
Syntax
Predefined constants
Magic constants
Expressions
Operators
Operator Precedence
Arithmetic
— Arithmetic Operators
Increment and Decrement
— Incrementing/Decrementing Operators
Assignment
— Assignment Operators
Bitwise
— Bitwise Operators
Comparison
— Comparison Operators
Error Control
— Error Control Operators
Execution
— Execution Operators
Logic
— Logical Operators
String
— String Operators
Array
— Array Operators
Type
— Type Operators
Control Structures
Introduction
if
else
elseif/else if
Alternative syntax for control structures
while
do-while
for
foreach
break
continue
switch
match
declare
return
require
include
require_once
include_once
goto
Functions
User-defined functions
Function parameters and arguments
Returning values
Variable functions
Internal (built-in) functions
Anonymous functions
Arrow Functions
First class callable syntax
Класи та об'єкти
Вступ
The Basics
Properties
Property Hooks
Class Constants
Autoloading Classes
Конструктори та деструктори
Область видимості
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
— Serializing objects - objects in sessions
Covariance and Contravariance
Lazy Objects
OOP Changelog
Namespaces
Overview
— Namespaces overview
Namespaces
— Defining namespaces
Sub-namespaces
— Declaring sub-namespaces
Defining multiple namespaces in the same file
Basics
— Using namespaces: Basics
Namespaces and dynamic language features
namespace keyword and __NAMESPACE__
— The namespace keyword and __NAMESPACE__ magic constant
Aliasing and Importing
— Using namespaces: Aliasing/Importing
Global space
Fallback to global space
— Using namespaces: fallback to the global space for functions and constants
Name resolution rules
FAQ
— FAQ: things you need to know about namespaces
Enumerations
Enumerations overview
Basic enumerations
Backed enumerations
Enumeration methods
Enumeration static methods
Enumeration constants
Traits
Enum values in constant expressions
Differences from objects
Value listing
Serialization
Why enums aren't extendable
Приклади
Помилки
Basics
Errors in PHP 7
Exceptions
Extending Exceptions
Fibers
Generators
Generators overview
Generator syntax
Comparing generators with Iterator objects
Attributes
Attributes overview
Attribute syntax
Reading Attributes with the Reflection API
Declaring Attribute Classes
References Explained
What References Are
What References Do
What References Are Not
Passing by Reference
Returning References
Unsetting References
Spotting References
Попередньо визначені змінні
Суперглобальні змінні
— Вбудовані змінні, які доступні у всіх областях видимості
$GLOBALS
— Посилається на всі доступні змінні в глобальній області видимості
$_SERVER
— Інформація про серверне та виконавче середовище
$_GET
— Змінні, що передаються через HTTP методом GET
$_POST
— Змінні, що передаються через HTTP методом POST
$_FILES
— Змінні завантаження файлів через HTTP
$_REQUEST
— Змінні HTTP-запита
$_SESSION
— Змінні сесії
$_ENV
— Змінні оточення
$_COOKIE
— HTTP Cookies
$php_errormsg
— Попереднє повідомлення про помилку
$http_response_header
— Заголовки HTTP-відповіді
$argc
— Число аргументів, переданих скрипту
$argv
— Масив аргументів, переданих до скрипта
Predefined Exceptions
Exception
ErrorException
ClosedGeneratorException
— The ClosedGeneratorException class
Error
ArgumentCountError
ArithmeticError
AssertionError
DivisionByZeroError
CompileError
ParseError
TypeError
ValueError
UnhandledMatchError
FiberError
RequestParseBodyException
Predefined Interfaces and Classes
Traversable
— The Traversable interface
Iterator
— The Iterator interface
IteratorAggregate
— The IteratorAggregate interface
InternalIterator
— The InternalIterator class
Throwable
Countable
— The Countable interface
ArrayAccess
— The ArrayAccess interface
Serializable
— The Serializable interface
Closure
— The Closure class
stdClass
— The stdClass class
Generator
— The Generator class
Fiber
— The Fiber class
WeakReference
— The WeakReference class
WeakMap
— The WeakMap class
Stringable
— The Stringable interface
UnitEnum
— The UnitEnum interface
BackedEnum
— The BackedEnum interface
SensitiveParameterValue
— The SensitiveParameterValue class
__PHP_Incomplete_Class
— Клас __PHP_Incomplete_Class
Predefined Attributes
Attribute
— The Attribute attribute
AllowDynamicProperties
— The AllowDynamicProperties attribute
Deprecated
— The Deprecated attribute
Override
— The Override attribute
ReturnTypeWillChange
— The ReturnTypeWillChange attribute
SensitiveParameter
— The SensitiveParameter attribute
Опції та параметри контекстів
Socket context options
— Socket context option listing
Опції контекста HTTP
— Список опцій контекста HTTP
FTP context options
— FTP context option listing
SSL context options
— SSL context option listing
Опції контексту Phar
— Список опцій контексту Phar
Параметри контексту
— Список параметрів контексту
Zip context options
— Zip context option listing
Опції контексту Zlib
— Список опцій контексту Zlib
Підтримувані протоколи та обгортки
file://
— Accessing local filesystem
http://
— Accessing HTTP(s) URLs
ftp://
— Accessing FTP(s) URLs
php://
— Accessing various I/O streams
zlib://
— Compression Streams
data://
— Data (RFC 2397)
glob://
— Find pathnames matching pattern
phar://
— PHP Archive
ssh2://
— Secure Shell 2
rar://
— RAR
ogg://
— Audio streams
expect://
— Process Interaction Streams