PHP language reference

PHP built-in language features chapter.

Types

PHP supports multiple types

Variables

Variables are used to store some value in your program.

Constants

Constants are similar to variables except they can be defined only once and cannot be chanded anymore during the program execution.

Operators

Operator is language element that takes one or more values and yields another value.

Control structures

Control structures are essential part of any language. They control how the program flow is happening, manage logic and more.

Functions

Functions wrap a block of code and provide reusability of this code in different parts of your program.

Object oriented programming

Object oriented programming with PHP, design patterns and anti patterns.

Namespaces

Namespaces are advanced way of encapsulating program items. Learn more about namespaces in PHP and how to use them.

Errors

How to show and handle errors in PHP.

Exceptions

Exceptions are object oriented events that occur in program execution.

Generators

Generators implement iterators.

References

References in PHP are symbol table aliases for accessing same variable by different names.

Predefined variables

PHP provides some special variables.

Overview

PHP cheatsheet of all basic built-in features and its basic syntax presented again in a single all-in-one chapter.

Sessions

A session is a way to store information to be used across multiple pages.

Cookies

A cookie is a file that the server sets on user’s computer to contain some information as key value pair.